2012-03-30 50 views
9

用于cron,如果我想运行一个命令,每次5分钟,这将是:的Cron:设置多分钟

*/5 * * * * command 

但如果我想成立分钟名单具体是什么?

像过去的5分钟,过去的18分钟和15分钟的时间?我猜这是:

5,18,45 * * * * 

回答

13

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

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