Do you know where your variables are? | |
PerlMonks |
Re^4: Read UNIX environment variableby johngg (Canon) |
on Feb 09, 2011 at 11:13 UTC ( [id://887173]=note: print w/replies, xml ) | Need Help?? |
You can access environment variables in a script run as a cron job but take note that cron jobs often have only a sub-set of the environment available to a user shell. For instance, you will likely have a minimal $PATH under cron. It might be worth writing a small script to dump the environment to a file then run it as a cron job to see what's available. I hope this is helpful. Cheers, JohnGG
In Section
Seekers of Perl Wisdom
|
|