Update cron.md (#1625)
* Update cron.md Add Crons operators and some examples * Formatting * Formatting Co-authored-by: Rico Sta. Cruz <rstacruz@users.noreply.github.com>
This commit is contained in:
parent
02fed04a43
commit
1acbf74350
27
cron.md
27
cron.md
|
@ -30,16 +30,27 @@ Min Hour Day Mon Weekday
|
|||
```
|
||||
{: .-setup.-box-chars}
|
||||
|
||||
### Operators
|
||||
|
||||
| Operator | Description |
|
||||
| --- | --- |
|
||||
| `*` | all values |
|
||||
| `,` | separate individual values |
|
||||
| `-` | a range of values |
|
||||
| `/` | divide a value into steps |
|
||||
|
||||
### Examples
|
||||
|
||||
| Example | Description |
|
||||
| --- | --- |
|
||||
| `0 * * * *` | every hour |
|
||||
| `*/15 * * * *` | every 15 mins |
|
||||
| `0 */2 * * *` | every 2 hours |
|
||||
| `0 0 * * 0` | every Sunday midnight |
|
||||
| --- | --- |
|
||||
| `@reboot` | every reboot |
|
||||
| Example | Description |
|
||||
| --- | --- |
|
||||
| `0 * * * *` | every hour |
|
||||
| `*/15 * * * *` | every 15 mins |
|
||||
| `0 */2 * * *` | every 2 hours |
|
||||
| `0 18 * * 0-6` | every week Mon-Sat at 6pm |
|
||||
| `10 2 * * 6,7` | every Sat and Thu on 2:10am |
|
||||
| `0 0 * * 0` | every Sunday midnight |
|
||||
| --- | --- |
|
||||
| `@reboot` | every reboot |
|
||||
|
||||
### Crontab
|
||||
|
||||
|
|
Loading…
Reference in New Issue