A non-Perl solution would be to source the .profile in the crontab entry before running the script.
0 12 * * * . /home/dave/.profile;/path/to/script.pl
Update: Changed source to .. cron always uses the Bourne shell :(
--
"Perl makes the fun jobs fun
and the boring jobs bearable" - me
In reply to Re: running .profile
by davorg
in thread running .profile
by mouse
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |