The 03.03.05 at 05:59, Mitch Thompson wrote:
The line to change is in file /etc/crontab:
14 0 * * * root rm -f /var/spool/cron/lastrun/cron.daily
The "14" is the minutes, the "0" is the hour(using a 24 hour clock),
So, on my system, updatedb runs daily, along with all other scripts in /etc/cron.daily, at 14 minutes past midnight.
Actually, that only deletes a flag file. The real run will happen up to 15 minutes after booting up linux, if it has not run yet this day. This is controlled by this line: -*/15 * * * * root test -x /usr/lib/cron/run-crons && /usr/lib/cron/run-crons >/dev/null 2>&1 If you inspect "/usr/lib/cron/run-crons" you will see the lines responsible for the time choosen to run daily tasks are: cron.daily) TIME="-ctime +1 -or -ctime 1" ;; eval find $SPOOL/$BASE $TIME | \ xargs --no-run-if-empty rm So it is not so easy... -- Cheers, Carlos Robinson