Cron:设置多分钟

Cron:设置多分钟,cron,crontab,Cron,Crontab,对于cron,如果我想每5分钟运行一次命令,它将是: */5 * * * * command 但是,如果我想设定一个具体的分钟列表呢 比如5点过去,18分钟过去,15分钟过去?我猜是这样的: 5,18,45 * * * * 是的,您指定的解决方案是正确的 0,5,55 * * * * command # run the command at the top of the hour, at # the 5 minute ma

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

*/5 * * * * command
但是,如果我想设定一个具体的分钟列表呢

比如5点过去,18分钟过去,15分钟过去?我猜是这样的:

5,18,45 * * * *

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

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