閱讀223 返回首頁    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配置文件