- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: at -f (script) now how to kill?
Operating System - HP-UX
1757053
Members
2244
Online
108858
Solutions
Forums
Categories
Company
Local Language
юдл
back
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
юдл
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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-19-2010 12:43 AM
тАО04-19-2010 12:43 AM
Re: at -f (script) now how to kill?
Soory, the previous script won't run. Try this.
You can write a script to kill all the commands in your script. Provided that the command name is in the 1st column of each line in your script, do:
> for i in `cat script.sh |awk '{print$1}'`
> ps -ef|grep $i |awk '{print$2}' | xargs -n 1 kill -9
> sleep 3
> done
Regards,
You can write a script to kill all the commands in your script. Provided that the command name is in the 1st column of each line in your script, do:
> for i in `cat script.sh |awk '{print$1}'`
> ps -ef|grep $i |awk '{print$2}' | xargs -n 1 kill -9
> sleep 3
> done
Regards,
"When you look into an abyss, the abyss also looks into you"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-19-2010 01:16 AM
тАО04-19-2010 01:16 AM
Re: at -f (script) now how to kill?
what actually this script is
more /usr/script.sh
If u can share.....
BR,
Kapil+
more /usr/script.sh
If u can share.....
BR,
Kapil+
I am in this small bowl, I wane see the real world......
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-19-2010 01:32 AM
тАО04-19-2010 01:32 AM
Re: at -f (script) now how to kill?
I got the solution.
I killed the /usr/bin/sh and the script is killed.
I killed the /usr/bin/sh and the script is killed.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-19-2010 01:34 AM
тАО04-19-2010 01:34 AM
Re: at -f (script) now how to kill?
Thanks to all for so many response closing the thread.
- « Previous
-
- 1
- 2
- Next »
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP