in reply to Issue with env variables set through dos batch
I'm not really familiar with DOS batch files, but on linux a shell script (the equivalent to a batch file) is run in a new process. And when the process exits, its environment variables vanish with it.
There you need to launch the perl script that is supposed to see the environment variables from within the shell script, so that it is a subprocess of the shell which holds the interesting environment variables.
To check if that's the case in DOS/Windows too, simply inspect the environment variables on the dos prompt after you ran the batch file.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Issue with env variables set through dos batch
by akrrs7 (Acolyte) on Oct 13, 2011 at 16:10 UTC | |
by Marshall (Canon) on Oct 15, 2011 at 15:55 UTC | |
Re^2: Issue with env variables set through dos batch
by ikegami (Patriarch) on Oct 13, 2011 at 16:45 UTC | |
by moritz (Cardinal) on Oct 13, 2011 at 17:08 UTC | |
by ikegami (Patriarch) on Oct 13, 2011 at 17:12 UTC | |
Re^2: Issue with env variables set through dos batch
by Marshall (Canon) on Oct 13, 2011 at 15:51 UTC | |
by akrrs7 (Acolyte) on Oct 13, 2011 at 16:08 UTC |
In Section
Seekers of Perl Wisdom