Anacron
This is a wiki page. Be bold and improve it!
If you have any questions about the content on this page, don't hesitate to open a new ticket and we'll do our best to assist you.
sys-process/anacron
Homepage: http://anacron.sourceforge.net/
Description: a periodic command scheduler
https://en.wikipedia.org/wiki/Anacron
/etc/anacrontab:
# format: period delay job-identifier command
## If you turn any of the following on, make sure that the
## regular cron daemon does not run them also. This could
## lead to double execution of the jobs.
1 5 cron.daily run-parts /etc/cron.daily
7 10 cron.weekly run-parts /etc/cron.weekly
30 15 cron.monthly run-parts /etc/cron.monthly
Fields:
1.
period
: 1 means every day; 7 means every seven days, etc.2.
delay
: the number of minutes anacron will wait before executing the command. (Question: what is it necessary?)3.
job identifier
: from man anacrontab
: "The job-identifier can contain any non-blank character, except slashes. It is used to identify the job in Anacron messages, and as the name for the job's timestamp file."4.
command
: the job to be executed. In the above example, see man run-parts
: "run-parts runs scripts or programs in a directory".
Force immediate execution of the entry with the job identifier "myjob":
anacron -f -d -n myjob