- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Incorrect crontab time
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-11-2000 08:23 AM
09-11-2000 08:23 AM
Incorrect crontab time
/etc/TIMEZONE >>Set to EST5EDT
/etc/profile >>Set to EST5EDT
/etc/cron.profile >>Set to EST5EDT
{{This is my self-made cron profile}}
Kernal Parameters:
timezone=300 (minutes East of Greenwich)
dst=1 (daylight savings time)
What else could be incorrect?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-11-2000 08:28 AM
09-11-2000 08:28 AM
Re: Incorrect crontab time
Is it the same as the servers that work ok?
It sounds like a Daylight Savings time issue to me.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-11-2000 08:29 AM
09-11-2000 08:29 AM
Re: Incorrect crontab time
Has the crontab file for the user been re-read? Are you using crontab -e
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-11-2000 08:30 AM
09-11-2000 08:30 AM
Re: Incorrect crontab time
Have you changed the time on this server with the 'date' command? If so, you ought to stop and restart the cron daemon:-
/sbin/init.d/cron stop
/sbin/init.d/cron start
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-11-2000 08:35 AM
09-11-2000 08:35 AM
Re: Incorrect crontab time
Crontab are edited in a text file and then replaced with "crontab
date hasn't been set since long before the last machine boot.
Oh yeah, I do have the lastest cron patch PHCO_19985
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-11-2000 08:42 AM
09-11-2000 08:42 AM
Re: Incorrect crontab time
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-11-2000 10:14 AM
09-11-2000 10:14 AM
Re: Incorrect crontab time
In your Kernel Parameters:
set timezone=240
That is where the problem is coming from. This will reboot your server.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-11-2000 10:20 AM
09-11-2000 10:20 AM
Re: Incorrect crontab time
My Timezone is EST5EDT, which indicates that we are 5 hours west of greenwich 5*60 minutes=300 not 240. Why do you suggest 240? All of my machines are set to 300 and they all work fine - even with MS Exchange email date. Just this one is a problem child.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-11-2000 10:56 AM
09-11-2000 10:56 AM
Re: Incorrect crontab time
First stop and start cron with following comands.
/sbin/init.d/cron stop
/sbin/init.d/cron start
Then run crontab -e command and save cron file.
P V Patel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-11-2000 11:24 AM
09-11-2000 11:24 AM
Re: Incorrect crontab time
You system date (GMT + 4 hours) is correct for EDT. We in the UK are currently on BST (GMT-1) and are 5 hours ahead of EDT.
I don't believe that the kernel parameter is significant.
Is there any difference between the file '/usr/lib/tztab' which defines the time zones on your problem server and one that is OK.?
If you examine that file you should see a section defining EST5EDT and when daylight savings time is in operation.
I also presume that 'date' returns the correct time EDT?
Regards,
John
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-11-2000 11:28 AM
09-11-2000 11:28 AM
Re: Incorrect crontab time
The file /usr/lib/tztab are identical between the good/bad machines.
Yes "date" comes up with the correct info! :)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-11-2000 12:49 PM
09-11-2000 12:49 PM
Re: Incorrect crontab time
It appears that your setup is correct but it is unknown if you have re-read the crontab file by bouncing the cron process.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-11-2000 12:54 PM
09-11-2000 12:54 PM
Re: Incorrect crontab time
I would also create a test cron entry to run a dummy job on the next hour to see whether restarting cron has fixed the problem.
Just get it to 'env'. When you check mail after the job has run you can also check what environment variables are being inherited from cron.
Regards,
John
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-11-2000 01:33 PM
09-11-2000 01:33 PM
Re: Incorrect crontab time
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-11-2000 06:54 PM
09-11-2000 06:54 PM
Re: Incorrect crontab time
I agree with John: I don't think the kernel parameter matters here. Document #W3396367 notes that "Most commands, which rely on...library routines, will get the correct behavior as long as the TZ environment variable is properly set for the users' environments, and ignore any values for the kernel parameters such as timezone.". See also document #W3608538. It contains some interesting comments on programattic access to various time functions.
Make sure that /etc/TIMEZONE is executable. It is sourced by /etc/profile in preference to setting a hard-coded TZ value.
For some pecularities of sendmail, see document #KBRC00001686. Sendmail uses a varible called
/etc/mail/sendmail.cf file which sets the timezone for mail messages.
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-18-2000 12:50 AM
09-18-2000 12:50 AM