希望作业在39分钟下午6时后,每天运行shell脚本:无法获得cron作业运行
$ crontab /Users/non12/Documents/crontab.job1
$ crontab -l
39 18 * * * /Library/WebServer/Documents/PBS/pbscli.sh
我看不错这里。 这是cron日志反映的负载,但没有CMD /运行。这是为什么?
debug flags enabled: misc
[10317] cron started
log_it: (non12 10317) RELOAD (tabs/non12)
log_it: (non12 10317) RELOAD (tabs/non12)
log_it: (non12 10317) RELOAD (tabs/non12)
log_it: (non12 10317) RELOAD (tabs/non12)
log_it: (non12 10317) RELOAD (tabs/non12)
脚本是可执行的,并从终端
运行正常的脚本:
cd /Library/WebServer/Documents/PBS
/usr/bin/php viewCLIControl.php 2> /Library/WebServer/Documents/PBS/pbs_error.log
你检查过SELinux是否阻止了你的cron工作? http://wiki.gentoo.org/wiki/SELinux/cron可能是一个很好的阅读。 – bansi