- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: cron problem
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
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
02-15-2003 01:30 AM
02-15-2003 01:30 AM
cron problem
Last Friday at 11:00 am the cron job started twice!
How is this possible?
Any suggestions?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-15-2003 04:02 AM
02-15-2003 04:02 AM
Re: cron problem
1. The time of the system.
2. Changed the time Zone of the system.
3. Changed the cron entry itself.
Please have a look at all above three only these could be the problem or see the cron log to /var/adm/cron/log file to see the exact time the job started.
rajeev
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-15-2003 10:22 AM
02-15-2003 10:22 AM
Re: cron problem
If for some reason the timezone or time of your system is changed, the cron daemon must be restarted. Otherwise this can potentially cause it to run twice. Another thing that you may want to check is patch. Look for any cron related patch and make sure (if any) your system is uptodate on these patches.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-15-2003 08:40 PM
02-15-2003 08:40 PM
Re: cron problem
It might be what the others suggested. Or....
You are connected to a time server and someone adjusted the time on that server. Is xntpd running?
ps -ef | grep xntpd
Thinking further in my fever impaired mind I know how ntp works and that probably can't happen.
Could perhaps the date command been run on this server. Done at the right time, a small adjustment could trigger flakey behavior.
Are you current on cron patches?
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-16-2003 08:25 AM
02-16-2003 08:25 AM
Re: cron problem
it is difficult to say, as I do not know how you have detected that the job was executed twice. I assume that the job was not simply executed from the command line; but could the job not be executed by two different users simultanously: cron or at job?
Anyway, if you have not already done it, check the general cron log, /var/adm/cron/log, which records which user did it, and when it started/stopped. Check also the content of each user's crontab and at files under /var/spool/cron/crontabs /var/spool/cront/atjobs in order to see any indication of the job in question having been executed by two different users.
If that is the case, but the time does not fit, then check whether the users in question have an individual setting of the TZ variable that differs from the general system setup.
regards,
John K.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-16-2003 08:36 AM
02-16-2003 08:36 AM
Re: cron problem
It would be helpful if you would post the applicable cron job entry from the output of crontab -l for the user.
Thanks,
Bruce Laughlin
HPUX GSE
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-18-2003 07:31 AM
02-18-2003 07:31 AM
Re: cron problem
Anyway on this Linux system there was one in the correct location, and a modified copy someplace else.
Someone changed a PATH setting, and suddenly the clocks where off, only discovered because a cron job misfired.
Turned out that the wrong timezone file was being accessed.
Anyway this is pretty remote and may not apply but it demonstrates how odd some this stuff can get.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-21-2003 04:03 AM
02-21-2003 04:03 AM
Re: cron problem
# Kopieren ME10-macros
00 20 * * 1-6 /usr/local/bin/save_me10_macro
The date is now:
Fri Feb 21 13:00:32 MET 2003
xntpd is not running!
The job was runned twice by cron.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-21-2003 04:07 AM
02-21-2003 04:07 AM
Re: cron problem
I know - this is a shot in the dark but the logical explanations seem to have been exhausted a long time ago.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-21-2003 04:24 AM
02-21-2003 04:24 AM
Re: cron problem
Could you check the date on process cron and compare it to the date of /var/spool/cron/crontabs/"user", maybe someone changed the cron with vi instead of crontab -e.
Hope it helps,
Robert-Jan.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-21-2003 05:03 AM
02-21-2003 05:03 AM
Re: cron problem
I'd take a look at the cron log file /var/adm/cron/log and see if there is anything interesting there.
Best regards,
Bruce Laughlin