commands – job schedule (repeat)
Add/delete a repeat job schedule.
Usage
job schedule (add|delete) name every n unit [time [date]]
where
add | add the specified schedule. |
delete | delete the specified schedule. |
name | of job whose schedule to add/delete. |
every | Define a repeating schedule. |
n | Interval to execute a repeating schedule. |
unit | of repeat interval. Where unit is one of second[s], minute[s], hour[s], day[s], week[s], month[s] & year[s]. |
time | of first execution in the format hh:mm:[ss]. The default is the time the schedule is defined. |
date | of first execution in the format dd/mm/yyyy. If the repeat period, repeats every 24 hours, this value is ignored. The default is day the schedule is defined. |
when day, week & month intervals cross a daylight savings boundary, the execution hour will remain unchanged, in effect decreasing/increasing the interval by an hour.
month intervals whose first execution date is on the 29th, 30th or 31st of the month, and then subsequently fall on a month with less days, will then be executed on the last day of the shorter month. From that point on the execution day will remain the lesser day. e.g. a schedule that is executed every month, and whose first execution date is 31/1/2020, will execute as follows – 31/1/2020, 29/2/2020, 29/3/2020, … 28/2/2021, 28/3/2021, etc…
write on name
Examples
Schedule a job every 6 hours
BeyondCron % job schedule add /server2/cores every 6 hours
BeyondCron % job show $$
----------- ----------------- Name /server2/cores Description Delete core files ... Schedules every 6 hours ...
Schedule a job every 2 weeks
BeyondCron % job schedule add /server2/payday every 2 weeks from 09:00 5/1/2017
BeyondCron % job show $$
----------- -------------------------------------- Name /server2/payday Description Fortnightly on Thursdays ... Schedules every 2 weeks from 09:00:00 05/01/2017 ...
Delete a job schedule
BeyondCron % job schedule delete /server2/cores every 6 hours
BeyondCron % job show $$
----------- ----------------- Name /server2/cores Description Delete core files ... Schedules ...