cron_automation
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| cron_automation [2016/08/03 20:49] – created walkeradmin | cron_automation [2017/01/29 18:08] (current) – walkeradmin | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Cron Automation ======= | ====== Cron Automation ======= | ||
| + | <color darkorange> | ||
| \\ | \\ | ||
| \\ | \\ | ||
| - | This information comes from " | + | \\ |
| + | This information comes from | ||
| + | " | ||
| \\ | \\ | ||
| To edit the cron job list: | To edit the cron job list: | ||
| \\ | \\ | ||
| - | | + | crontab -e (don't sudo, or you will change root cron, not your user cron) |
| \\ | \\ | ||
| Then add your job, which has the format: | Then add your job, which has the format: | ||
| Line 23: | Line 26: | ||
| ===== Working Example ===== | ===== Working Example ===== | ||
| \\ | \\ | ||
| - | This example will run the script **pibackup** at 3am every Sunday\\ | + | This example will run the script **pibackup** at **3am** every **Sunday** \\ |
| \\ | \\ | ||
| 00 03 0 0 0 / | 00 03 0 0 0 / | ||
| + | \\ | ||
| + | ===== Check if Cron is Running ===== | ||
| + | \\ | ||
| + | / | ||
| + | | ||
| + | ● cron.service - Regular background program processing daemon | ||
| + | Loaded: loaded (/ | ||
| + | Active: active (running) since Wed 2016-08-03 20:37:22 BST; 19h ago | ||
| + | Docs: man:cron(8) | ||
| + | Main PID: 453 (cron) | ||
| + | CGroup: / | ||
| + | └─453 / | ||
| + | \\ | ||
| + | \\ | ||
| + | ===== Check Jobs ===== | ||
| + | \\ | ||
| + | crontab -lu pi | ||
| + | | ||
| + | Shows current cron jobs for user pi | ||
| \\ | \\ | ||
| \\ | \\ | ||
| + | |||
cron_automation.1470257355.txt.gz · Last modified: (external edit)
