crontab.run

Cron 排程 小時範圍

0 9-17 * * *
分鐘
小時
日(月)
月
星期

每小時, 在 09:00 AM 和 05:00 PM 之間

接下來 5 次執行

1 
2 
3 
4 
5 

欄位分解

欄位值含義
分鐘0at minute 0
小時9-17from 9 through 17
日(月)*any value
月*any value
星期*any value

Crontab 行

0 9-17 * * * /path/to/script.sh
在產生器中開啟 →

The expression 0 9-17 * * * schedules a cron job to run 小時範圍. This schedule belongs to the "小時" category and is frequently used for periodic maintenance tasks, report generation, or batch processing that runs several times throughout the day.

相關範例