CronJob not running

前端 未结 11 1336
攒了一身酷
攒了一身酷 2020-11-22 02:33

I have set up a cronjob for root user in ubuntu environment as follows by typing crontab -e

  34 11 * * * sh /srv/www/live/CronJobs/daily.sh
  0          


        
11条回答
  •  傲寒
    傲寒 (楼主)
    2020-11-22 02:39

    To add another point, a file in /etc/cron.d must contain an empty new line at the end. This is likely related to the response by Luciano which specifies that:

    The entire command portion of the line, up to a newline or a "%"
    character, will be executed
    

提交回复
热议问题