- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Cron jobs not executed for specific user
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
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
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
тАО10-14-2009 12:02 AM
тАО10-14-2009 12:02 AM
Re: Cron jobs not executed for specific user
Do the following to make sure manual commands fail:
$ env -i PATH=/usr/bin:/usr/sbin:. sh
Now try your "manual" commands and see if they fail with signal 9.
>What else can I check so as to find the root cause of the failure (ts=9)?
Have you stopped and restarted cron?
Have you rebooted after this user started failing?
I suppose you could use tusc on cron to see what it is doing:
tusc -fp -ea -o tusc.out $(UNIX95=EXTENDED_PS ps -C cron -o pid=)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-14-2009 12:03 AM
тАО10-14-2009 12:03 AM
Re: Cron jobs not executed for specific user
Can you post the crontab -l and the script which is not executed.
Suraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-14-2009 02:23 AM
тАО10-14-2009 02:23 AM
Re: Cron jobs not executed for specific user
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-14-2009 04:34 AM
тАО10-14-2009 04:34 AM
Re: Cron jobs not executed for specific user
$ env -i PATH=/usr/bin:/usr/sbin:. sh
Now try your "manual" commands and see if they fail with signal 9.
Can you please explain what this command does?
>Have you stopped and restarted cron?
Have you rebooted after this user started failing?
cron was restarted and server was rebooted without result
>I suppose you could use tusc on cron to see what it is doing:
tusc -fp -ea -o tusc.out $(UNIX95=EXTENDED_PS ps -C cron -o pid=)
Can you please explain what this command does and if we have to type everything (even these that are in parenthesis)?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-14-2009 04:45 AM
тАО10-14-2009 04:45 AM
Re: Cron jobs not executed for specific user
> Can you please explain what this command does?
Can the nmcman user login to the server without any problems? After login can he/she execute the same commands from the cron job, by typing them on the unix command line?
You have not been giving answers to most of the questions that people have asked you here.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-14-2009 04:55 AM
тАО10-14-2009 04:55 AM
Re: Cron jobs not executed for specific user
i asked what these commands do as i don't know and i don'twant to play with a live node.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-14-2009 05:23 AM
тАО10-14-2009 05:23 AM
Re: Cron jobs not executed for specific user
command might do, you can replace "rm" with
"echo", which is much safer. Then, if you
see that it finds the files
You are right when it comes to be sure before deletion. .
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-14-2009 05:24 AM
тАО10-14-2009 05:24 AM
Re: Cron jobs not executed for specific user
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-14-2009 06:05 AM
тАО10-14-2009 06:05 AM
Re: Cron jobs not executed for specific user
csh -f /opt/mv36/core/lib/../script/mv36Backup /opt/mv36/core/data/data/ini/mv36Backup.ini -nointeractive -cron
1) when jobs that run manually don't run from cron, one suspect is that lack of the appropriate environment variables. The cron environment is minimalist.
2) I (personally) avoid running individual commands from cron, preferring to stick them in a script and run that. #1 above is one of the reasons why.
3) do you really need csh to run these? If mv36Backup *is* a script, and has the proper #! line at the top, you don't need to run the csh to start the script.
4) what happens if you stick that job in root's crontab and run it as follows:
su - nmcman -c "/opt/mv36/core/lib/../script/mv36Backup /opt/mv36/core/data/data/ini/mv36Backup.ini -nointeractive -cron"
note: if that runs properly, I'd really suspect an issue with the environment.....
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-14-2009 06:07 AM
тАО10-14-2009 06:07 AM
Re: Cron jobs not executed for specific user
Did you check if nmcman gets any email from cron? Or look in /var/mail/nmcman for any clues?
Did you check /var/adm/syslog/syslog.log for any errors?
I can see that even a simple date command gives ts=9 and you have tried the mv36Backup cron job with and without the csh wrapper.