Re: system(const char *string) and environment variables
Re: system(const char *string) and environment variables
- Subject: Re: system(const char *string) and environment variables
- From: Richard Cook <email@hidden>
- Date: Thu, 20 Jul 2006 09:17:31 -0700
I believe the child inherits the paren't environment, so have you
tried putenv() (see man page)?
On Jul 20, 2006, at 8:42 AM, Filippo Ignozza wrote:
dear sirs,
from my own executable i am running a child executable using the
system(const char *string)
but i need that the child process has some enviroment variables
already
setted.
is there a way to achieve that?
it is ok for me both to set the variables for all the new opened
shells, as
well as to use some C code and modify the child executable so that it
sets the variables, reading from an external file.
regards
Ignozza Filippo
Digital Video S.p.a.
Tel +39 06 43599369
+39 06 4393578
Fax +39 06 43251588
E-mail email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
X11-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription: http://lists.apple.com/
mailman/options/x11-users/email@hidden
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
X11-users mailing list (email@hidden)
This email sent to email@hidden