Re: Calling a unix command from Cocoa ?
Re: Calling a unix command from Cocoa ?
- Subject: Re: Calling a unix command from Cocoa ?
- From: David Remahl <email@hidden>
- Date: Fri, 08 Nov 2002 23:41:17 +0100
>
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..
Actually, there is lots of information on this available:
- The NSTask documentation
- The Molarity sample on Apple sample code website
- Programming topyc: Interacting with the Operating System
There are also many third-party exampel applications. I'll leave it to you
to look them up.
Furthermore, you can use the posix/bsd functions for dealing with task
manangement, and communicate with them for example using pipes.
/ Good luck,
// David Remahl
_______________________________________________
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.