【问题标题】:Cron : Setting multiple minutesCron : 设置多分钟
【发布时间】:2012-04-14 07:19:48
【问题描述】:

对于 cron,如果我想每 5 分钟运行一次命令,那就是:

*/5 * * * * command

但是如果我想专门设置一个分钟列表呢?

就像在 5 点过去、18 分钟过去和 15 分钟过去一样?我猜是这样的:

5,18,45 * * * *

【问题讨论】:

    标签: cron crontab


    【解决方案1】:

    是的,您指定的解决方案是正确的。

    0,5,55 * * * * command       # run the command at the top of the hour, at
                                 # the 5 minute mark and at the 55 minute mark.
    

    【讨论】:

      猜你喜欢
      • 2018-04-27
      • 1970-01-01
      • 1970-01-01
      • 2019-07-20
      • 2014-06-23
      • 2013-06-12
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多