Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

crontab problem ( /var/log/cron question)

Status
Not open for further replies.

borgliu

MIS
Apr 10, 2003
38
TW
hi, all
I have a problem about my RH 6.2
because I set some crontab , but I found the cron job not run. so I check the log in /var/log/cron

I found the following log:
===
root (03/04-14:50:08-12104) BEGIN EDIT (root)
root (03/04-14:50:13-12104) REPLACE (root)
root (03/04-14:50:13-12104) END EDIT (root)
root (03/04-06:51:00-413) RELOAD (cron/root)
===
you can see the last line shows cron reload at 06:51!? time is show in GMT time??
but my timezone is GMT+8,
the first 3 lines is correct, but reload is not.

I also check my time by using "date"
Thu Mar 4 14:59:07 CST 2004
it seems my time is correct. but why the reload time is GMT?

all other linux server no such problem, so I don't know how to solve it.


anyone know why and how to fix??
thanks very much.
 
Updated!
after testing ,I found the root cause, but still know why and how to fix

root cause are:
crontab runs at GMT!!
so, if I want run a job at 15:00 everyday,
I must set in crontab like this:
0 07 * * * /home/borgliu/job.sh

why!? because only this linux has this problem.
others are not.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top