Setting env vars from Cocoa with /bin/sh?
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.