Cron 任务 在特定小时之间
0 9-17 * * *
分钟
小时
日(月)
月
星期
每小时, 在 上午 09:00 和 下午 05:00 之间
字段分解
| 字段 | 值 | 含义 |
|---|---|---|
| 分钟 | 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.