Support > Administrator's guide (R7) > How to specify a job schedule
ja | en

I will explain how to specify the schedule.

unit Range of values Characters that can be used Remarks
Seconds 0-59 , - * /
Minute 0-59 , - * /
Time 0-23 , - * /
Day 1-31 , - * ? / L W
Month 1-12 or JAN-DEC , - * /
The day of the week 1-7 or SUN-SAT , - * ? / L # "1" corresponds to Sunday, "7" corresponds to Saturday.
Year Not specified.Or 1970-2099 , - * /

Usage of characters that can be used is as follows.

character How to use Remarks · Example
* Range of values ​​All For example, if "minute" is set to "*", it will be 0 minutes to 59 minutes.
? It does not indicate a specific value It can be specified only for "day" and "day of week".You can not write "?" In both.(You can specify either one.)
- range For example, if "hour" is set to "9-17", it will be from 9 o'clock to 17 o'clock (5 p.m.)
, Enumerate values For example, if "MAR" is set to "MAR, SEP", it will be March and September.
/ Increment of value For example, if you set "minute" to "0/20", it will be 0 minutes, 20 minutes, 40 minutes. If you set "minute" to "5/20", it will be 5 minutes, 25 minutes, 45 minutes, and so on. In case of "* / 20", "*" is assumed to be 0.
L (even l) Last day It can be specified only for "day" and "day of week".For example, if "day" is set to "L", it will be the last day of the month (January 31 if January, February 28 if February is not a leap year).Also, setting "day" to "L" will be Saturday.In combination with the day of the week, it becomes the specified day of the week at the end of the month.For example '6 L' will be the last Friday of the month.
W (even w) Weekdays (Monday to Friday) Can be specified only for "day". For example, if you set "15 W", it will be the weekday closest to 15th.So if 15th is Saturday it will be 14th day and on Sunday it will be 16th.However, if it is set to "1 W" and if the first day is Saturday, it will be the third day of the month, not Friday of the previous month."W" can not be used in combination with ranges or enumeration.It can only be used in combination with a specific day.
# The nth day of the week It can be specified only for "day of the week"."4 # 2" will be on the second Wednesday

Run every 1 minute

unit Seconds Minute Time Day Month The day of the week Year
value 0 * * * * ? *
※ It will be executed at 0 sec per minute.

Execute every 5 minutes

unit Seconds Minute Time Day Month The day of the week Year
value 0 0/5 * * * ? *

Execute every 30 minutes

unit Seconds Minute Time Day Month The day of the week Year
value 0 0,30 * * * ? *

Run at 9 o'clock and 17 o'clock every day

unit Seconds Minute Time Day Month The day of the week Year
value 0 0 9,17 * * ? *

Run at 0:30 am every Saturday

unit Seconds Minute Time Day Month The day of the week Year
value 0 30 0 ? * 7 *

Execute at 8:30 am every three days

unit Seconds Minute Time Day Month The day of the week Year
value 0 30 8 3/3 * ? *
  • The range of "days of the week"0-6 Not 1-7 is.
  • "Day" and "day of week" can not be specified at the same time.Please change one of them to "?".(Both can not be '?'.)
  • It can not be specified like N minutes after the current time.The job will be executed at the time you made the designation within 24 hours (HH hours mm minutes ss seconds).

Multiple job execution can not be performed.

If you make a job start every minute, if execution of this job is not completed in 1 minute, a new job will not be executed.