Re: Setting env vars from Cocoa with /bin/sh?
Re: Setting env vars from Cocoa with /bin/sh?
- Subject: Re: Setting env vars from Cocoa with /bin/sh?
- From: Justin Bagley <email@hidden>
- Date: Wed, 14 Apr 2004 17:13:37 -0300
On Apr 14, 2004, at 2:36 PM, M. Uli Kusterer wrote:
At 9:28 Uhr -0700 14.04.2004, David Piasecki wrote:
You know, I ended up solving this problem with the setenv() standard
C function. I just pass a command to the system function, and it
works great.
David,
well, guess I was too late then. But at least we have two options for
doing it (my guess and your proven one) on record in the list archives
now :-)
You could also use execve() or one of exec*() execve wrappers. See
execve(2) and exec(3) manpages. Be aware that the exec* functions
replace the currently running process when called and therefore are
usually called in a child process created via a call to fork().
--
Justin Bagley
_______________________________________________
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.