On Friday 04 March 2005 22:23, Richard Bos wrote:
Op vrijdag 4 maart 2005 13:46, schreef Anders Johansson:
Does anyone know when the scripts in /etc/cron.daily are being executed? It is of course once a day, but just when. Are the scripts examined every minuted by /usr/bin/cron? If so does it mean that the scripts in /etc/cron.daily could be executed just after booting? Just wondering.
Have a look at /etc/crontab, that's where it's run from.
Ah yes that's the file. I could not find it anymore :(
On my machine it says
14 4 * * * root rm -f /var/spool/cron/lastrun/cron.daily
and
-*/15 * * * * root test -x /usr/lib/cron/run-crons && /usr/lib/cron/run-crons >/dev/null 2>&1
So it is run every 15 minures (*/15).
run-crons is run every 15 minutes, yes. But cron.daily is only run when the file in lastrun doesn't exist. Which should be at 4.15 in SUSE 9.2
Why it the "-" sign in front of the */15?
To make cron shut up about it. If you don't have the - in there, every 15 minutes you'll get a log message telling you that it's been run. Which will get annoying in the long run