Hi,
when using the predefined hash %ENV some variables are not found if the script is run from a crontab.
$HOME = $ENV{'HOME'};
works fine, but;
$user = $ENV{'USER'};
produces no result.
why is that?
thanks,
Ad
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.