crontab 小問題 - Linux

Table of Contents

如果我想要每天晚上八點到隔天的六點
每五分鐘執行一個程式
crontab 這樣寫不知道對不對?
*/5 0-6,20-23 * * * ap

還是一定要寫成兩行?
*/5 0-6 * * * ap
*/5 20-23 * * * ap

--

All Comments

Rebecca avatarRebecca2009-12-15
同一行就好了
Kumar avatarKumar2009-12-17
那我這樣寫對嗎?
Agatha avatarAgatha2009-12-18
跑一天不就知道了 @@a