- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- 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
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
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-15-2009 12:41 AM
10-15-2009 12:41 AM
Re: Cron jobs not executed for specific user
It unsets all if your environment variables except for PATH. This is what crontab does.
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)?
Yes, you have to type everything. The stuff in () finds the PID for cron, so you don't have to.)
It basically runs tusc on cron and puts the output in tusc.out. Hopefully this should show us what is going on with cron and in particular for that user. (You need to start this before nmcman's crontab starts.)
- « Previous
-
- 1
- 2
- Next »