How can I run a cron job every 5 minutes starting from a time other than 0 minutes?

前端 未结 4 498
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-07 15:37

I would like to have a script run every 5 minutes let\'s say starting from 13:02 so I can have another script runs every 5 minutes but starting from 13:04 so the second scri

4条回答
  •  醉酒成梦
    2020-12-07 15:57

    I needed similar thing - to execute script every 5 minutes starting from third minute of an hour. I doubted above solutions (because website crontab.guru was convincing me about invalid syntax) and so my colleague told me to specify minutes directly like this:

    3,8,13,18,23,28,33,38,43,48,53,58 * * * *

    Its list of concrete minutes.

提交回复
热议问题