Do you know where your variables are? | |
PerlMonks |
Re: Issue with env variables set through dos batchby moritz (Cardinal) |
on Oct 13, 2011 at 15:44 UTC ( [id://931286]=note: print w/replies, xml ) | Need Help?? |
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.
In Section
Seekers of Perl Wisdom
|
|