│││┌── day of week (0 - 6 => Sunday - Saturday, or │││ 1 - 7 => Monday - Sunday) ↓↓↓ command to be executed 注意事项: a、星期和数字对应 0 - Sun Sunday 1 - Mon Monday 2 - Tue Tuesday 3 - Wed Wednesday 4 - Thu Thursday 5 - Fri Friday 6 - Sat Saturday 7 ...
│││ 1 - 7 => Monday - Sunday) ↓↓↓ * * * * * command to be executed 注意事项: a、星期和数字对应 0 - Sun Sunday 1 - Mon Monday 2 - Tue Tuesday 3 - Wed Wednesday 4 - Thu Thursday 5 - Fri Friday 6 - Sat Saturday 7 - Sun Sunday b、’day or month‘ 、‘month’ 、...
* * * * * command to be executed 注意事项:a、星期和数字对应 0 - Sun Sunday 1 - Mon Monday 2 - Tue Tuesday 3 - Wed Wednesday 4 - Thu Thursday 5 - Fri Friday 6 - Sat Saturday 7 - Sun Sunday b、’day or month‘ 、‘month’ 、‘day of week’ --这...
1 - Mon Monday 2 - Tue Tuesday 3 - Wed Wednesday 4 - Thu Thursday 5 - Fri Friday 6 - Sat Saturday 7 - Sun Sunday b、’day or month‘ 、‘month’ 、‘day of week’ --这三项注意 如果不能确定月份日期和周日期对应关系,可以两个取一个 即 规定了 月份和日期 就不选择星期 星期 执行 ...
every friday at midnight every saturday every weekday weekdays only monday to friday every weekend weekends only every 7 days every week weekly once a week every month monthly once a month every other month every quarter every 6 months
When using the 'L' option, it is important not to specify ranges of values, as the results generated can be confusing or unexpected in nature. W ("weekday") Specifies the weekday (Monday-Friday) nearest to the given day. E.g.: If you define "12W" as the value for the day-of-...
crontab -e : 編輯 user 既 crontab Example: Execute every Friday 1 am 0 1 * * 5 /bin/execute/this/script.sh Execute on Monday to Friday 1 am 0 1 * * 1-5 /bin/execute/this/script.sh Execute every 10 mins */10 * * * * /bin/execute/this/script.sh ...
1 - Mon Monday 2 - Tue Tuesday 3 - Wed Wednesday 4 - Thu Thursday 5 - Fri Friday 6 - Sat Saturday 7 - Sun Sunday 下面是一个总体的图像: ┌────────── minute (0 - 59) │┌──────── hour (0 - 23)
Hyphen (-): Can be used to indicate a range. For example, in the day-of-week field, you might specify 1-5 to schedule the task to run from Monday to Friday, but not to run on Saturday or Sunday. Comma (,): Can be used to specify a list of values for a field. For example,...
Let’s take a real-time example where I have to execute/home/processMonitor.shat every 5 minutes between Monday to Friday. So, I got the below Cron syntax which I can put in my crontab by executing crontab –e 0,5,10,15,20,25,30,35,40,45,50,55 * * * 1-5 /home/processMonito...