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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

cron job missed

Status
Not open for further replies.

gonzilla

Programmer
Apr 10, 2001
125
US
Hi,

I have a cron scheduled to run at 3:45 AM, and it was missed this Sunday. I live in Illinois and of course the clocks went ahead one hour at 2:00 AM - but that would seem to mean that the 3:45 AM time would have been fine as the one hour would have made it 3:00 AM. I have an identical cron running at 5:00 AM on another server and it ran just fine and any other cron seemd to run fine as well. My guess is that the cron was missed because of the hour switch somehow - but why?

Thanks.

-Tyler
 
Perhaps your state's time of change is 2am - but your machine does it at 3am ?
Here, we have a line in etc/environment
TZ=GMT0BST,M3.5.0,M10.4.0
that sets the months and Sunday of the month when to effect the change, but I don't know where the hour to effect the change is set.
HTH Dickie Bird (:)-)))
 
To set the time the change will take effect add an /hour parameter to the end of the two timings, e.g.:

[tt]TZ='GMT0BST,M3.5.0/1,M10.5.0/1'[/tt]

This example means that the time jumps from 00:59 to 02:00 when summer time starts, and from 01:59 to 01:00 when it ends.
Annihilannic.
 
Thanks guys.

I checked, and there isn't an /etc/environment file on our systems.

If I echo $TZ I get

CST6CDT

So, what does it do if nothing is specified like this?

Where can I find a man page that describes this environment variable?

Thanks,

-Tyler
 

Note: The time zone offsets and time change points are interrelated and context-dependent. The rule variable's runtime execution semantics change as a function of the offsets. For example, if the summer time zone changes one hour, as in CST6CDT5, (the default 2 a.m.) summer time changes instantaneously from 2 a.m. to 3 a.m. CDT. The fall change is from 2 a.m. CDT to 1 a.m. CST. The respective changes for a time zone of CST6CDT4 are 2 a.m. CST to 4 a.m. CDT and 2 a.m. CDT to 12 a.m. CST.
Best of Irish Luck, David.
djwilkes@hotmail.com
 
Hi,

To answer Annihilannic's question, we use SunOs.

And, thanks for the link Advocate - I'll take a look.

-Tyler
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top