开发者

cronjob issue not running

开发者 https://www.devze.com 2023-03-03 14:33 出处:网络
i created RC-Cron.txt in /etc/cron.d folder i have these lines in there: MAILTO=mymailaddress #rainbowcode

i created RC-Cron.txt in /etc/cron.d folder i have these lines in there:

MAILTO=mymailaddress

#rainbowcode
5 8 * * * root /home/rainbowcode/DB-Query-Script.php rainbowcode yesterday mymailaddress

my cronjob is not running, i see from other example开发者_如何学Pythons the script it must run is a .sh??? and can i save the cronjob as .txt??

can someone help me fix this please? thanks


That hashmark in the beginning makes that line a comment. I'm also guesing root is the user you want to run it as, remove that from the crontab, and add the command to root's crontab.

0

精彩评论

暂无评论...
验证码 换一张
取 消