阅读223 返回首页    go 搜狐 go 中电云集


crontab精确到以秒为单位

crontab精确到以秒为单位

以秒运行Crontab

在Liux或BSD下,Crontab可以实现以秒运行程序的。

格式如下:

1 minute 1

1,5 minutes 1 and 5

* any minute

*/5 any minute that is divisible by 5

1:2 second 2 of minute 1

1:2,5:10 second 2 of minute 1 and second 10 of minute 5

*:3 second 3 of any minute

*:*/5 any second that is divisible by 5

1:2 第一分钟的第二秒

1:2,5:10 1分二秒与5分10秒

*:3 任意一分钟的第3秒

*:*/5 任意一分钟里可以被5整除的秒,比如,第5、10、15、20 。。。。

最后更新:2017-01-04 22:34:32

  上一篇:go squid故障汇总
  下一篇:go squid配置文件