Linux crontab do not perform problem troubleshooting
A crontab is configured on the CentOS, so that it executes once a day, the configuration syntax is fine, but the log that the program executes is not found, so the program is not executed.
The crontab configuration is as follows:
* * * * sh/opt/geo/search-task-2.0/bin/updategeoindex.sh
Through Google, you know that you can view crontab specific execution information through/var/spool/mail/root (user name), so
See Crontab's execution log as follows:
/opt/geo/search-task-2.0/bin/updategeoindex.sh:line 23:bin/search-task.sh:no such file or directory
Through the log can be seen because the search-task.sh is not found, the original is search-task.sh path problems, modify the path, Crontab successfully run.
So if you find that the crontab does not execute the problem, you can first go to see the/var/spool/mail/root log, to determine the specific failure reasons.