|
|
| laziness, impatience, and hubris | |
| PerlMonks |
passing env{} variable to child fails on linux,works on windowsby sdetweil (Sexton) |
| on Jan 12, 2013 at 14:53 UTC ( #1013046=perlquestion: print w/ replies, xml ) | Need Help?? |
|
sdetweil has asked for the
wisdom of the Perl Monks concerning the following question:
I have this multi-platform application. it launches children that run for a short period of time.
I need to communicate from parent to child. so just before launching the child, I do $ENV{'varname'}='value'; and in the child, I get the environment variable and all is well. this works on Windows without problem, but the variable does not show up for the linux child. in both cases I am actually starting a command shell script. xxx.cmd on Windows and xxx.sh on linux. the set command dumps the environment, and on linux the variable is not set when xxx.sh is started. I do not need the value to be persistent, and I understand the reasons and issues there. one piece of info, the child is started with OPEN so that the parent can monitor the childs console output on perl 5.10, linux fedora 10, 32 bit (can't update for other reasons)
Back to
Seekers of Perl Wisdom
|
|