How to test a cron job?

后端 未结 2 700
故里飘歌
故里飘歌 2021-01-14 01:50

I\'m using Ubuntu Linux 10.0.4. I want to run a script every 6 hours, every day. When I issue sudo crontab -e, I see:

# m h  dom mon dow   co         


        
2条回答
  •  被撕碎了的回忆
    2021-01-14 02:32

    You can update the MAILTO variable to your email address, and cron should email you any STDOUT and STDERR output. Also check your syslog file /var/log/messages to see if the script is being executed by cron.

    -Tony

提交回复
热议问题