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

Cron jobs executing hour earlier than scheduled

Status
Not open for further replies.

StevenR77

MIS
Apr 7, 2009
10
US
I have been attempting to track why cron jobs for a user in my HP UX environment are executing a hour earlier than they have been schedule.

This issue just began a couple of days ago and it makes no sense because there have been no changes to the system that I am aware and none of the global environment variables having to do with time appear to be changed.

Any an insight you my have are greatly appreciated.
 
Possibly due to obsolete rules relating to the start and end times of daylight savings? Might be worth checking whether your TZ-related patches are up-to-date.

What timezone is the system configured for?

Annihilannic.
 
Annihilannic,

The TZ is Central time. I checked the patch and the timezone configuration as well as bounced the cron service.

The timezone appears to be configured properly and the hardware that is configured the same way does not have any issues with the time settings.

Thanks for your feedback. This one is just beyond bizarre.
 
Has the user set a local TZ variable that may be interfering with things?

Add a little color to your PUTTY terminal: faq52-6627
 
If you set up a cron job to run the date command and log it to a file, does it show CST or CDT as the effective timezone? Is the time it records the correct time or one hour earlier?

/usr/lib/tztab should look like this I believe (as of PHCO_34669 on HP-UX 11.23):

Code:
# US DST changes for CST6CDT.

# Central Standard Time, Central Daylight Time
CST6CDT
0 3 24-30 4  1970-1973 0   CDT5
0 3 6     1  1974      0-6 CDT5
0 3 22-28 2  1975      0   CDT5
0 3 24-30 4  1976-1986 0   CDT5
0 3 1-7   4  1987-2006 0   CDT5
0 3 8-14  3  2007-2038 0   CDT5
0 1 25-31 10 1970-1973 0   CST6
0 1 24-30 11 1974      0   CST6
0 1 25-31 10 1975-2006 0   CST6
0 1 1-7   11 2007-2038 0   CST6

What version of HP-UX are you running?

Annihilannic.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top