User Tools

Site Tools


trigger:Cron

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
trigger:Cron [2017/10/10 00:06]
peternlewis
trigger:Cron [2019/09/10 21:36] (current)
peternlewis [Examples]
Line 24: Line 24:
 Alternatively,​ the entire field can be one of: Alternatively,​ the entire field can be one of:
  
-* `@yearly` or `annually` — same at `0 0 1 1 *` (midnight at the start of January 1st each year). +* `@yearly` or `annually` — same as `0 0 1 1 *` (midnight at the start of January 1st each year). 
-* `@monthly ` — same at `0 0 1 * *` (midnight at the start of the 1st of each month). +* `@monthly ` — same as `0 0 1 * *` (midnight at the start of the 1st of each month). 
-* `@weekly ` — same at `0 0 * * 0` (midnight at the start of the each Sunday). +* `@weekly ` — same as `0 0 * * 0` (midnight at the start of the each Sunday). 
-* `@daily ` or `@midnight` — same at `0 0 * * *` (midnight at the start of the each day). +* `@daily ` or `@midnight` — same as `0 0 * * *` (midnight at the start of the each day). 
-* `@daily ` — same at `0 0 * * *` (midnight at the start of the each day). +* `@noon ` — same as `0 12 * * *` (noon in the middle of the each day). 
-* `@noon ` — same at `0 12 * * *` (noon in the middle of the each day). +* `@hourly ` — same as `0 * * * *` (at the start of each hour).
-* `@hourly ` — same at `0 * * * *` (at the start of each hour).+
  
 The [[token:​TriggerValue|%TriggerValue%]] token will hold the current time and date (`yyyy-mm-dd hh:mm`). The [[token:​TriggerValue|%TriggerValue%]] token will hold the current time and date (`yyyy-mm-dd hh:mm`).
 +
 +Remember that your Mac **must** be awake for any trigger to run, and that if the screen is sleeping, locked, or screen saving, then UI actions generally will not work.
  
 ===== Examples ===== ===== Examples =====
Line 45: Line 46:
 * `0 18-23,0-8 * * *` — triggers at every hour outside office hours. * `0 18-23,0-8 * * *` — triggers at every hour outside office hours.
 * `0 12 1 Apr *` — triggers at noon on April 1st. * `0 12 1 Apr *` — triggers at noon on April 1st.
 +* `30 8 17 Apr * 2019` — triggers at 8:30am on 17 April, 2019.
 * `0 12 15 * *` — triggers at noon the 15th of each month. * `0 12 15 * *` — triggers at noon the 15th of each month.
 * `0 12 15 * Mon` — triggers at noon each Monday and the 15th of each month. * `0 12 15 * Mon` — triggers at noon each Monday and the 15th of each month.
Line 50: Line 52:
 * `0-59/5 * * * *` — triggers every five minutes (at :00, :05, :10, etc). * `0-59/5 * * * *` — triggers every five minutes (at :00, :05, :10, etc).
 * `3-59/5 * * * *` — triggers every five minutes (at :03, :08, :13, etc). * `3-59/5 * * * *` — triggers every five minutes (at :03, :08, :13, etc).
- 
 ===== See Also ===== ===== See Also =====
  
trigger/Cron.1507608362.txt.gz · Last modified: 2017/10/10 00:06 by peternlewis