Hi,
Marko Vukovic wrote:
I have a strange problem with cron on a MNF 8.2. The /etc/cron.daily runs at just past 10am every morning, instead of at 04h02 as indicated by /etc/crontab:
02 4 * * * root nice -n 19 run-parts /etc/cron.daily
The system date appears correct: [EMAIL PROTECTED] root]# date Mon Sep 6 10:03:42 SAST 2004
run 1) # date 2) # date -u
Is it different ?
The system may be running on a different time zone. Since date returned SAST the time zone in your environment variable may be different from the real system time.
Some customers get confused all the time with this :)
They run date and they get their local time, I run date from root and get the GMT time. The box is actually running on GMT.
In exemple, a backup run at 18:00 EST but in the log they see 22:00. If they hit date it's saying 18:00 but it's really 22:00.
Hi Jean-Pierre
Thanks for the info. I'm still confused though ;) Here's the info from date and date -u
[EMAIL PROTECTED] root]# date Mon Sep 6 14:01:39 SAST 2004 [EMAIL PROTECTED] root]# date -u Mon Sep 6 12:01:42 UTC 2004
So the system clock is not set to UTC. There is also nothing set in the environment variables, but /etc/localtime is pointing to the correct place for SAST:
[EMAIL PROTECTED] root]# ll /etc/localtime
lrwxrwxrwx 1 root root 39 Jun 11 10:18 /etc/localtime -> /usr/share/zoneinfo/Africa/Johannesburg
How does this explain the 6 hours difference?
Regards -- Marko
____________________________________________________ Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com Join the Club : http://www.mandrakeclub.com ____________________________________________________
