- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- cron job runs, but not when scheduled
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
11-27-2002 04:49 PM
11-27-2002 04:49 PM
cron job runs, but not when scheduled
45 23 * * * /home/kae/Load.sh
The first two lines of the script are:
#!/bin/ksh
echo "Load Stamp 1 `date`" > /tmp/kae.$$
When I look at this log file for the last couple of days, the date echoed is:
Load Stamp 1 Tue Nov 26 00:31:26 CST 2002
AND
Load Stamp 1 Wed Nov 27 00:29:49 CST 2002
Anyone have any thoughts?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-27-2002 04:54 PM
11-27-2002 04:54 PM
Re: cron job runs, but not when scheduled
/var/adm/cron/log
If the entry is in here at the correct time, it must have something to do with the script your running. Do any other jobs have this problem?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-28-2002 12:33 AM
11-28-2002 12:33 AM
Re: cron job runs, but not when scheduled
You may be hitting maximum cron jobs which will cause a reschedule.
look at the log and
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0xf6dc0bce6f33d6118fff0090279cd0f9,00.html
Steve steel
Do not meddle in the affairs of Unix, for it is subtle and quick to core dump.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-28-2002 01:17 AM
11-28-2002 01:17 AM
Re: cron job runs, but not when scheduled
as already stated, it is probably a matter of reaching the queuedefs max. limit. To find out what causes this, you can examine each users' crontab under /var/spool/cron/crontabsand his/her atjobs under /var/spool/cron/atjobs
regards,
John K.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-14-2003 01:21 PM
01-14-2003 01:21 PM
Re: cron job runs, but not when scheduled
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-14-2003 05:42 PM
01-14-2003 05:42 PM
Re: cron job runs, but not when scheduled
/var/adm/cron/log should show BOTH the start & end times for all cron jobs - as well as the command run. You can match them up by PID.
What time does the log show for the start of the cron job?
What does it show for the end time? Is that value equal to the perceived time diff?
Another thing to check is
the TZ variable defined for the user running the cron. Does it differ from your TZ?
Rgds,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-15-2003 12:32 AM
01-15-2003 12:32 AM
Re: cron job runs, but not when scheduled
try to include also an:
ps -ef >> /tmp/kae.$$
to you script so as to get a list of processes that are executing at that same moment.
you might also check the load on the server at the same time.
Post the results.
Hope this helps!
Best Regards
Yogeeraj