• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Setting env vars from Cocoa with /bin/sh?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


References: 
 >Setting env vars from Cocoa with /bin/sh? (From: "David Piasecki" <email@hidden>)
 >Re: Setting env vars from Cocoa with /bin/sh? (From: "David Piasecki" <email@hidden>)
 >Re: Setting env vars from Cocoa with /bin/sh? (From: "M. Uli Kusterer" <email@hidden>)
 >Re: Setting env vars from Cocoa with /bin/sh? (From: "David Piasecki" <email@hidden>)
 >Re: Setting env vars from Cocoa with /bin/sh? (From: "M. Uli Kusterer" <email@hidden>)

  • Prev by Date: Re: Calling subclassed methods on Cocoa objects
  • Next by Date: Re: Mapping CrashReporter addresses to Obj-C method names
  • Previous by thread: Re: Setting env vars from Cocoa with /bin/sh?
  • Next by thread: What is called AFTER awakeFromNib?
  • Index(es):
    • Date
    • Thread