Re: Calling a UNIX application from a carbon app
Re: Calling a UNIX application from a carbon app
- Subject: Re: Calling a UNIX application from a carbon app
- From: Chris Ridd <email@hidden>
- Date: Tue, 28 May 2002 10:50:29 +0100
Nathan Day <email@hidden> wrote:
>
How about system() see man system
There was a recent thread about this, which concluded that system() was too
risky because it invokes sh to run the program and therefore you have to be
quite careful about getting around the shell quoting rules. Otherwise you
will make the same mistake Apple did with the iTunes installer :-)
Using fork and exec is safer. (See man fork and man exec.) Or NSTask if
you're using Cocoa.
Cheers,
Chris
_______________________________________________
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.