Re: Calling a unix command from Cocoa ?
Re: Calling a unix command from Cocoa ?
- Subject: Re: Calling a unix command from Cocoa ?
- From: Charles Srstka <email@hidden>
- Date: Fri, 8 Nov 2002 18:58:57 -0600
If you need to launch the task with root privileges with sudo, you need
to use the Security Framework. There's a good tutorial explaining how
to use it on Stepwise - go there, and use their search, and you should
be able to find it.
If you don' t need root privileges, you just need to use NSTask, which
is very easy to use. You can read about how to use NSTask in the API
docs.
Hope that helps,
Charles
On Friday, November 8, 2002, at 12:59 PM, Robert Miller wrote:
Hello ,
OK, here's a dumb question. Can anyone tell me if it is possible to
call a unix command from within a running Cocoa application ? (in my
case flex and bison) ? And if so, what's the secret ? For some reason
there doesn't seem to be any documentation or examples available on
this topic unless I'm missing something which is entirely possible..
Thanks in advance for any help,
Regards,
Bob M
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.