- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: root: crontab runs ok, at/batch hang
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
09-23-2002 03:48 PM
09-23-2002 03:48 PM
The root login shell is /sbin/sh. I tried changing to /usr/bin/sh but same problem. The cron.log shows that the at job starts. last time I successfully ran this was prior to june 2002 patch bundle.
Here's some sample output:
at now
date
warning: commands will be executed using /usr/bin/sh
job 1032824564.a at Mon Sep 23 19:42:44 2002
pstree -s cron
-+- 00001 root init
\-+- 04265 root /usr/sbin/cron
|-+- 04297 root sh
| \--- 04298 root /usr/bin/sh
|-+- 04318 root sh
| \--- 04319 root /usr/bin/sh
|-+- 04304 root sh
| \--- 04305 root /usr/bin/sh
\-+- 04313 root sh
\--- 04314 root /usr/bin/sh
! *** cron started *** pid = 4265 Mon Sep 23 13:47:59 EDT 2002
> CMD: 1032803323.a
> root 4297 a Mon Sep 23 13:48:46 EDT 2002
> CMD: 1032803336.a
> root 4304 a Mon Sep 23 13:49:04 EDT 2002
> CMD: 1032803385.a
> root 4313 a Mon Sep 23 13:49:47 EDT 2002
> CMD: 1032824564.a
> root 4318 a Mon Sep 23 13:49:52 EDT 2002
Thank you in advance for any help.
Chuck Davis
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-23-2002 04:25 PM
09-23-2002 04:25 PM
Solutionwhat /usr/bin/at
swlist -l fileset -a state |grep cron
If you have PHCO_24702, this may explain what's happening:
On machines having latest kernel patches (available in Sept-2001 Quality pack)
and the previous at/cron patch( [PHCO_24702/PACHRDME/English]
), atjobs are not getting
executed when any of LANG, LC_ALL, LC_CTYPE are set.
Steps to reproduce the
defect:
1. Start the cron daemon $ /sbin/init.d/cron start
2. Set the LANG to
some locale. $ export LANG=ja_JP.SJIS
3. Initiate an atjob. $ at now <
4. Check whether the atjob was executed. $ ll t.1 t.1 not found
Resolution: With the above environment, cron was not able to release the lock on
the atjob file which resulted in a race condition. cron(1M) has been fixed to
remove this race condition.
To resolve this, install the latest cron patch, PHCO_27141
Regards,
Tracy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-23-2002 05:16 PM
09-23-2002 05:16 PM
Re: root: crontab runs ok, at/batch hang
Thanks! I did not have the 24702 patch loaded. However I did have LANG set. I unset it and at/batch works. I will try the 24741 patch soon.
Thanks also for posting to my other empty message too - I hit enter before I typed anything.
Regards,
Chuck
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-24-2002 03:26 PM
09-24-2002 03:26 PM
Re: root: crontab runs ok, at/batch hang
Tracy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-24-2002 03:32 PM
09-24-2002 03:32 PM
Re: root: crontab runs ok, at/batch hang
I've been trying to resolve this problem for several weeks. In my case, the symptoms showed up in Omniback. We use the detach.sh script - which invokes an at job - to off-line the database shutdown commands.
After installing the March 2002 or subsequent bundles for HP-UX 11.00, our Omniback pre-exec and post-exec scripts hung.
The HP response centre in Melbourne, Australia, advised us to use the /opt/omni/lbin/utilns/detach program in place of the detach.sh script. This works fine for us in this instance but it is great to be able to resolve the root cause of our original problem.
Regards
Jim