-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 The Sunday 2005-11-27 at 12:10 +0800, Joe Morris (NTM) wrote:
the rm and touch commands altogether. Is this the way it is supposed to work? It seems it will just keep changing when it runs depending on what time I turn on my computer, or if I turned on one day at noon, it will run at noon the next day if I turned on a 6am. Am I missing something, or is this the way it is supposed to work? I did make the changes to the /usr/lib/cron/run-crons.
Mine (without changes) seems to run every day 15 minutes later, except if it is powered down at the corresponding time, in which case it runs about 15 minutes after booting. If I touch /var/spool/cron/lastrun/cron.daily, it runs within 15 minutes; similarly, if it was due to run at night, but the computer was off and cron runs at daytime when i switch it on, the flag file will be timestamped daytime, of course. I have just now edited /usr/lib/cron/run-crons: #cron.daily) TIME="-ctime +1 -or -ctime 1" ;; #cron.weekly) TIME="-ctime +7 -or -ctime 7" ;; #bug cron.daily) TIME="-cmin +1400 -or -cmin -1400" ;; cron.weekly) TIME="-cmin +10080 -or -cmin -10080" ;; and I'll see if that fixes the 15' delay. - -- Cheers, Carlos Robinson -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (GNU/Linux) Comment: Made with pgp4pine 1.76 iD8DBQFDiawwtTMYHG2NR9URAnKYAJ40TCp1IfJTZPl5ueXMMaZ2cpyrMgCgkqHF oTO/LMN8HW2qUW19P0KW114= =SP7h -----END PGP SIGNATURE-----