Skip to content

Cron Examples

Nick Wilfahrt edited this page Aug 29, 2016 · 6 revisions

Cron syntax

* * * * * *

| | | | | | +-- Year (range: 1900-3000)

| | | | | +---- Day of the Week (range: 1-7, 1 standing for Monday)

| | | | +------ Month of the Year (range: 1-12)

| | | +-------- Day of the Month (range: 1-31)

| | +---------- Hour (range: 0-23)

| +------------ Minute (range: 0-59)

Example

Run once a day at 3:41 am

41 3 * * * python /opt/TheaterTrailers/theaterTrailers.py

Run every four hours, on the hour

00 */4 * * * python /opt/TheaterTrailers/theaterTrailers.py

See more examples at:

http://www.nncron.ru/help/EN/working/cron-format.htm