Execute a Cronjob Every Minute Between Two Times

前端 未结 2 1901
名媛妹妹
名媛妹妹 2021-01-28 05:09

I need to run a bash script in crontab every minute between 8:45am and 9:50am of every day.

Code:

45,4         


        
2条回答
  •  遥遥无期
    2021-01-28 05:46

    Try this:

    45-59/1 8 * * * /home/pull.sh > /home/pull.log 2>&1
    00-50/1 9 * * * /home/pull.sh > /home/pull.log 2>&1
    

提交回复
热议问题