- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Shell script with "kill" ends script
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
тАО07-07-2005 08:00 AM
тАО07-07-2005 08:00 AM
I am just writing a simple little script that will stop omniback, kill any rogue omniback/DP processes and then start it back up again. The problem is that the whole script seems to exit after the "kills" and won't run the /sbin/init.d/omni start process. Any ideas?
Thanks!
Solved! Go to Solution.
- Tags:
- kill
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-07-2005 08:08 AM
тАО07-07-2005 08:08 AM
Re: Shell script with "kill" ends script
If this were me, I would first look for and apply the latest OB2/DP patches and push them to all the clients. If the problem persists, I would detach your script from any connection with OB2/DP processes by letting your post-exec issue an "at" job and then let the post-exec exit.
Something like this in your post-exec:
at -f /opt/omni/lbin/clean_n_fixup.sh now + 3 minutes
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-07-2005 09:12 AM
тАО07-07-2005 09:12 AM
Re: Shell script with "kill" ends script
I have got this kind of behavior when I kill a son process of the shell script with kill -9.
I wonder if you could try a less hard method like kill -3?
greetings,
Michael
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-07-2005 09:16 AM
тАО07-07-2005 09:16 AM
Solution- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-07-2005 09:30 AM
тАО07-07-2005 09:30 AM
Re: Shell script with "kill" ends script
Thanks Clay!
Sally
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-07-2005 11:41 PM
тАО07-07-2005 11:41 PM
Re: Shell script with "kill" ends script
Another command exists to stop omniback : omnisv -stop. So try the following lines.
omnisv -stop
kill -9 `ps -ef | sed -n '/omni/p' | sed -e '/sed/d' | awk '{print $2}' | xargs`
omnisv -start
I hope it's what you search !
Roland
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-11-2005 04:54 AM
тАО07-11-2005 04:54 AM