crontab runs its jobs 7 hours too late
Posted on 2005-03-10
I have a weird situation with crontab.
it launches all jobs 7 hours later but tells me it runs correctly.
i have a couple of jobs scheduled at 22.30 and 23.45.
first one runs backup, second one runs reports during the night.
both run fine when launched manually,
the backup runs in a couple of minutes, the reports take less than an hour.
when i look at the logs of the procedures the run 7 hours too late.
however when i look in /var/adm/cron/log crontab tells me they run at the correct hour.
however they do not as things are running when i come in at 7.30.
my clock is ok, i think.
Thu Mar 10 22:26:46 NFT 2005
from my crontab entries:
45 23 * * 1-5 /data/erp/batch/nacht.sh >/data/erp/batch/nacht.log 2>&1
30 20 * * 1-5 /data/erp/bin/backup.sh >/data/erp/bin/backup.log 2>&1
from the cron log:
root : CMD ( /data/erp/batch/nacht.sh >/data/erp/batch/nacht.log 2>&1
) : PID ( 11906 ) : Wed Mar 9 23:45:00 2005
root : CMD ( /data/erp/bin/backup.sh >/data/erp/bin/backup.log 2>&1 ) : PI
D ( 6458 ) : Thu Mar 10 20:30:00 2005
-rwxrwxrwx 1 root system 74 Mar 10 06:45 nacht.log
-rwxrwxrwx 1 root system 203057 Mar 10 07:51 nacht.out
-rwxrwxrwx 1 root system 5487 Mar 09 05:30 backup.log
i rebooted the machine to make sure crontab daemon runs ok.
i have no clue what could be the cause of this...