cron 不执行任何任务,但会将其写入日志

cron 不执行任何任务,但会将其写入日志

我的一台服务器上出现了奇怪的问题。Cron 不执行任何任务,但它会将任务已成功执行写入日志。就像激活了某种模拟模式一样……

Apr 30 03:03:08 nd-10049 crond[13387]: (root) CMD (php /usr/local/frb/backup.php)
Apr 30 03:05:01 nd-10049 crond[13397]: (root) CMD (php /home/support/public_html/cron/cron_hourly.php>/home/support/public_html/cron/hourly.log)
Apr 30 03:09:01 nd-10049 crond[19108]: (root) CMD (/etc/webmin/cron/tempdelete.pl )
Apr 30 03:10:01 nd-10049 crond[19467]: (root) CMD (php /home/support/public_html/cron/cron_hourly.php>/home/support/public_html/cron/hourly.log)
Apr 30 03:14:44 nd-10049 crontab[21154]: (root) BEGIN EDIT (root)
Apr 30 03:15:01 nd-10049 crond[21309]: (root) CMD (php /home/support/public_html/cron/cron_hourly.php>/home/support/public_html/cron/hourly.log)
Apr 30 03:15:38 nd-10049 crontab[21154]: (root) REPLACE (root)
Apr 30 03:15:38 nd-10049 crontab[21154]: (root) END EDIT (root)
Apr 30 03:16:01 nd-10049 crond[14961]: (root) RELOAD (cron/root)
Apr 30 03:20:02 nd-10049 crond[22620]: (root) CMD (php /home/support/public_html/cron/cron_hourly.php)

公共日志(消息)中没有关于 cron 的错误。操作系统是 CentOS。我该怎么做才能检查问题是什么?问题可能是什么?

答案1

尝试/usr/bin/php代替php

答案2

天哪 :) 这很简单。php 不在系统 PATH 中。简单

相关内容