If I place a shell script in /etc/cron.daily/, at what time of the day will it be executed?
|
|
|
Looking at
|
|||||||||
|
|
As indicated by other answers, the result depends on whether anacron is installed. On a desktop, it is installed by default, BUT crucially it is not installed in the server distribution. So the answer is around 06:25 on a server and about 07:35 on a desktop. |
|||
|
|
|
Approximately 7:35am, but the exact timing will depend on anacron. By default cron delegates the running of /etc/cron.daily jobs to anacron. /etc/crontab contains the line:
but this defines the behaviour if anacron is not installed With anacron installed, the running of cron.daily jobs is controlled by the entry in /etc/anacrontab:
which says run these jobs once per day, with a delay of 5 minutes. anacron itself is run by cron, as specified in the file /etc/cron.d/anacron, which runs anacron at 7:30am. |
|||
|
|