Cron 排程 在特定小時之間
0 9-17 * * *
分鐘
小時
日(月)
月
星期
每小時, 在 09:00 AM 和 05:00 PM 之間
欄位分解
| 欄位 | 值 | 含義 |
|---|---|---|
| 分鐘 | 0 | at minute 0 |
| 小時 | 9-17 | from 9 through 17 |
| 日(月) | * | any value |
| 月 | * | any value |
| 星期 | * | any value |
Crontab 行
0 9-17 * * * /path/to/script.shThe 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.