• 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
Setting env vars from Cocoa with /bin/sh?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Setting env vars from Cocoa with /bin/sh?


  • Subject: Setting env vars from Cocoa with /bin/sh?
  • From: "David Piasecki" <email@hidden>
  • Date: Thu, 8 Apr 2004 17:35:01 -0700

I'm using the system(char *cmd) call to execute commands from within my application; however, I need certain environment variables set. The shell that runs is /bin/sh, which lacks all my environment variable settings I have with tcsh and bash. I've only ever set env variables with tcsh or bash or other shells that use setenv or export. These commands are shell-specific and unavailable to /bin/sh. There must be a way of setting an environment variable with /bin/sh. Does anyone know?

David
_______________________________________________
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.


  • Follow-Ups:
    • Re: Setting env vars from Cocoa with /bin/sh?
      • From: "David Piasecki" <email@hidden>
  • Prev by Date: Re: Best way to obtain the width of a piece of text?
  • Next by Date: Re: I need more mouseDragged events
  • Previous by thread: Re: I need more mouseDragged events
  • Next by thread: Re: Setting env vars from Cocoa with /bin/sh?
  • Index(es):
    • Date
    • Thread