- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: crontab entry do not run on PM hours
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
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
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
04-11-2012 07:49 AM
04-11-2012 07:49 AM
crontab entry do not run on PM hours
Hi All
I have a problem, I wonder if you can help me sort it out:
I have the following entry in the cron:
00 1,13 * * * /xxx/yyy/zzzz.ksh > ttttt.log
But the entry only runs at 01:00Am. I have stopped the cron deamon, and started, but it still does not work.
Can you help figure it out what is wrong with it?
FR
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-11-2012 08:55 AM
04-11-2012 08:55 AM
Re: crontab entry do not run on PM hours
The crontab entry looks fine. I don't see any obvious errors.
Is there any information in /var/adm/cron/log?
What about your ttttt.log file?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-11-2012 10:23 AM
04-11-2012 10:23 AM
Re: crontab entry do not run on PM hours
Hi
There is no error entry in the /var/adm/cron/log file. But the entry runs only for the 01:00
FR
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-11-2012 11:33 AM
04-11-2012 11:33 AM
Re: crontab entry do not run on PM hours
Try setting up a separate line for the 1:00 PM execution:
00 1 * * * /xxx/yyy/zzzz.ksh > ttttt.log
00 13 * * * /xxx/yyy/zzzz.ksh > ttttt.log
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-12-2012 05:02 AM
04-12-2012 05:02 AM
Re: crontab entry do not run on PM hours
Hi
The only entry that run was the one of 01:00AM, but this one:
00 13 * * * /xxx/yyy/zzzz.ksh > ttttt.log
did not run.
If I do grep "report" /var/adm/cron/log I can see an entry for the one executed at 01:00AM.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-12-2012 06:54 AM
04-12-2012 06:54 AM
Re: crontab entry do not run on PM hours
Can you run something else at 1:00 PM and see if it works?
Try stopping and restarting cron.
# /sbin/init.d/cron stop
# /sbin/init.d/cron start
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-12-2012 07:04 AM
04-12-2012 07:04 AM
Re: crontab entry do not run on PM hours
I have done that many times it only work for the 01:00AM entry, but I will do it again just before 01:00PM which is in about 21 hours from now, where I am :)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-12-2012 09:34 AM
04-12-2012 09:34 AM
Re: crontab entry do not run on PM hours
>I have done that many times it only work for the 01:00AM entry,
Are you using "crontab -e" or "crontab file" to edit your entries?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-13-2012 05:05 AM
04-13-2012 05:05 AM
Re: crontab entry do not run on PM hours
Hi
After stopping/starting, which did not solve the problem, a schedulled reboot has solved the problem.
Many thanks to all that contributed.
FR
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-13-2012 05:06 AM
04-13-2012 05:06 AM