1
我已經創建了兩個cron作業:的cronjob沒有得到執行
crontab -e
0 0,6,12,18 * * * php -f /opt/lampp/htdocs/thenwat/preInvite_karim/frrole/topurl.php
* * * * * php -f /opt/lampp/htdocs/thenwat/invite/hash.php
~
但這些都不得到執行,什麼錯?
首先只有第一個。後來我加了第二名,但都沒有采取任何行動。
UPDATE
文件中/var/log
目錄。哪一個是我關心的?
audit btmp-20140101 cron-20140112 mail messages-20131229 secure-20140105 spooler-20140119
boot.log cloud-init.log cron-20140119 maillog messages-20140105 secure-20140112 tallylog
boot.log-20131229 conman dmesg maillog-20131229 messages-20140112 secure-20140119 wtmp
boot.log-20140105 conman.old dmesg.old maillog-20140105 messages-20140119 spooler yum.log
boot.log-20140112 cron dracut.log maillog-20140112 ntpstats spooler-20131229 yum.log-20120101
boot.log-20140119 cron-20131229 dracut.log-20120101 maillog-20140119 secure spooler-20140105 yum.log-20131004
btmp cron-20140105 lastlog messages secure-20131229 spooler-20140112 yum.log-20140101
/var/log中的任何錯誤跟蹤? – Alfabravo
@Alfabravo:你能看到更新 –
嘗試使用完整的php路徑例如/ usr/bin/php – DhruvPathak