crontab.run

Cron 任务 每个工作日

0 0 * * 1-5
分钟
小时
日(月)
月
星期

在上午 12:00, 星期一至星期五

接下来 5 次运行

1 
2 
3 
4 
5 

字段分解

字段值含义
分钟0at minute 0
小时0at hour 0:00
日(月)*any value
月*any value
星期1-5from 1 through 5

Crontab 行

0 0 * * 1-5 /path/to/script.sh
在生成器中打开 →

The expression 0 0 * * 1-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.

相关示例