Re: call C application
Re: call C application
- Subject: Re: call C application
- From: Nick Zitzmann <email@hidden>
- Date: Thu, 27 Apr 2006 14:49:15 -0600
On Apr 27, 2006, at 2:45 PM, email@hidden wrote:
If you don't want to hook input/output streams (STDIN/STDOUT) then
you can simple call C-library function
system();
No, don't. system() is a potential security hole because it runs a
shell task. Instead, try fork() and execv(), which IIRC is what
NSTask does anyway.
Nick Zitzmann
<http://www.chronosnet.com/>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden