crontab格式问题

1,linux crontab格式

 ┌───────────── minute (0 - 59)
 │ ┌───────────── hour (0 - 23)
 │ │ ┌───────────── day of month (1 - 31)
 │ │ │ ┌───────────── month (1 - 12)
 │ │ │ │ ┌───────────── day of week (0 - 6) (Sunday to Saturday;
 │ │ │ │ │                                       7 is also Sunday)
 │ │ │ │ │
 │ │ │ │ │
  * *  *  * *  command to execute
5位,其中day of week使用“ 0 - 6 (0=Sunday)”,或者" SUN, MON, TUE, WED, THU, FRI and SAT"


2,quartz crontab格式

  1. Seconds
  2. Minutes
  3. Hours
  4. Day-of-Month
  5. Month
  6. Day-of-Week
  7. Year (optional field)
7位,增加秒和年的约定。day of week 使用“1 - 7 (1 = Sunday)”,或者" SUN, MON, TUE, WED, THU, FRI and SAT"


https://en.wikipedia.org/wiki/Cron

http://www.quartz-scheduler.org/documentation/quartz-2.x/tutorials/tutorial-lesson-06.html

你可能感兴趣的:(crontab格式问题)