This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
computing:cronsyntax [2018/12/03 18:29] – created oemb1905 | computing:cronsyntax [2024/02/17 16:23] (current) – removed oemb1905 | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ------------------------------------------- | ||
- | * **cronsyntax** | ||
- | * **Jonathan Haack** | ||
- | * **Haack' | ||
- | * **netcmnd@jonathanhaack.com** | ||
- | |||
- | ------------------------------------------- | ||
- | |||
- | //I hate cron syntax - block from when I was younger// | ||
- | |||
- | ------------------------------------------- | ||
- | |||
- | Every day at 2:30am | ||
- | |||
- | 30 2 * * * / | ||
- | |||
- | Every Monday at 2:30am | ||
- | |||
- | 30 2 * * 1 / | ||
- | | ||
- | First day of the month | ||
- | |||
- | 0 0 1 * * / | ||
- | | ||
- | Here is a helpful text-based explanation from systutorials.com: | ||
- | |||
- | .---------------- minute (0-59) | ||
- | | .------------- hour (0-23) | ||
- | | | .---------- day of month (1-31) | ||
- | | | | .------- month (1-12) OR jan, | ||
- | | | | | .---- day of week (0-6) (Sunday=0 or 7) OR sun,mon,tue ... | ||
- | | | | | | | ||
- | * * * * * command to be executed | ||
- | |||
- | You got it, right? | ||
- | |||
- | --- // | ||
- | |||
- | |||
- | |||
- | |