in reply to Perl cron job not running

I am curious as to how you came up with this chron command? Looking at chron, there are 5 fields, you have 16. Also date >> /tmp/mycron.log; /usr/bin/perl /share/script/Test/report.pl seems suspect as that is not the normal command line syntax for redirection. What is "date"? /usr/bin/perl /share/script/Test/report.pl >> /tmp/mycron.log would seem more logical to me.

Replies are listed 'Best First'.
Re^2: Perl cron job not running
by shmem (Chancellor) on Jul 20, 2016 at 08:26 UTC
    Looking at chron, there are 5 fields, you have 16.

    The comma-separated list of minutes is the first field; plus 4 wildcard * makes 5.

    perl -le'print map{pack c,($-++?1:13)+ord}split//,ESEL'
Re^2: Perl cron job not running
by chefchanyu (Novice) on Jul 20, 2016 at 01:38 UTC

    date command just a out put of current time, just to prove cron did execute that line.

    report.pl itself will auto out put to it own log file. which already specify in the script.