Cron 任务 周五下午6点
0 18 * * 5
分钟
小时
日(月)
月
星期
在下午 06:00, 仅星期五
字段分解
| 字段 | 值 | 含义 |
|---|---|---|
| 分钟 | 0 | at minute 0 |
| 小时 | 18 | at hour 18:00 |
| 日(月) | * | any value |
| 月 | * | any value |
| 星期 | 5 | on Friday |
Crontab 行
0 18 * * 5 /path/to/script.shThe expression 0 18 * * 5 schedules a cron job to run 周五下午6点. This is a commonly referenced cron schedule used for periodic tasks such as maintenance, cleanup, reporting, or automated workflows that run on a regular cadence.