my perl script is not executing in crontab,
I dont know how to confirm this but Im not seeing the script result or output.
But in the cron log I see a entry like
Jul 28 12:35:01 dvsbi-build crond[13469]: (root) CMD (PATH=/usr/local/bin:/usr/sbin/usr/lib perl /dm2/www/html/isos/preFCS5.3/autodownload.pl)
And I set the cron job as
35 12 * * 2-6 PATH=/usr/local/bin:/usr/sbin/usr/lib perl /dm2/www/html/isos/preFCS5.3/autodownload.pl
Im not able to see the perl script result. In script I have redirected all the debug statements to a LOG file and I dont see the log file update.
the perl script run fine manually from anywhere in terminal by giving path like
perl /dm2/www/html....../autoDownload.pl
Also I have given full path to the log files inside the script.
You should use the full path to perl in cron. Some implementations of cron restrict usage of environment variables.
Try to find out where perl is located on your system with
which perllike sergio commented.Given perl is in /usr/bin try the following: