Keep It Simple, Stupid | |
PerlMonks |
get environment variables from a bourne fileby BradV (Sexton) |
on May 12, 2011 at 13:59 UTC ( [id://904412]=perlquestion: print w/replies, xml ) | Need Help?? |
BradV has asked for the wisdom of the Perl Monks concerning the following question: I have a bourne shell script that sets a bunch of environment variables. From another bourne shell script I would just call as: . /usr/local/env.sh I've written a perl script that I need to get those same environment variables set in. I tried doing:
Any ideas how I could achieve this? Thanks! Hopefully, I am updating this correctly. :) I couldn't get any of the suggestions to work. The file has comments, "export" lines, etc. Not a simple "Var=value" type of setup. So, I wound up doing this:
That is working. Thanks for all of the suggestions!
Back to
Seekers of Perl Wisdom
|
|