This shows you the differences between two versions of the page.
— |
cron.daily [2020/09/26 12:24] (current) ian created |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Anacron ====== | ||
+ | |||
+ | A system that goes to sleep (suspend) cannot run regularly scheduled cronjobs. Fortunately anacron is already installed, and runs the scripts in ''/ | ||
+ | |||
+ | The problem is that these scripts run as '' | ||
+ | |||
+ | < | ||
+ | #!/bin/bash | ||
+ | |||
+ | set -eo pipefail | ||
+ | |||
+ | sudo -u ian -i << | ||
+ | < | ||
+ | SUDO | ||
+ | </ | ||
+ | |||
+ | Remember to '' | ||
+ | |||
+ | < | ||
+ | chmod u+x / | ||
+ | </ | ||