I have a crontab file that looks like this:
* * * * * /home/abliskovs/update/update.sh
However when I check the syslog for evidence that the job has run, there is nothing that might indicate that it ever ran. How can I check if it's running?
crontab -l outputs the following:
* * * * * /home/abliskovs/update/update.sh
4 Answers
Add a >>/tmp/testlog.log to the end of your crontab entry (to redirect output to a file you can investigate or check if it's running, additionally a 2>&1 would include output from the error console)
Example
0 * * * * /home/abliskovs/update/update.sh 2>&1 /tmp/testlog.log