Cron 任务 每周五午夜
0 0 * * 5
分钟
小时
日(月)
月
星期
在上午 12:00, 仅星期五
字段分解
| 字段 | 值 | 含义 |
|---|---|---|
| 分钟 | 0 | at minute 0 |
| 小时 | 0 | at hour 0:00 |
| 日(月) | * | any value |
| 月 | * | any value |
| 星期 | 5 | on Friday |
Crontab 行
0 0 * * 5 /path/to/script.shThe expression 0 0 * * 5 schedules a cron job to run 每周五午夜. This schedule belongs to the "天" category and is a popular choice for daily maintenance routines, backup operations, or recurring tasks tied to specific days of the week.