in reply to Perl cron job not running
date >> /tmp/mycron.log; /usr/bin/perl /share/script/Test/report.pl
Change the semicolon to && since cron executes only one command per entry:
*/5 * * * * date >> /tmp/mycron.log && /usr/bin/perl /share/script/Tes +t/report.pl
update: wrong test - as haukex writes below, cron takes the rest of the line as one command.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Perl cron job not running
by haukex (Archbishop) on Jul 20, 2016 at 08:47 UTC | |
by shmem (Chancellor) on Jul 20, 2016 at 15:21 UTC | |
by haukex (Archbishop) on Jul 20, 2016 at 17:28 UTC |