- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Killing multiple processes
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
07-17-2003 12:00 PM
07-17-2003 12:00 PM
Kyle
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-17-2003 12:09 PM
07-17-2003 12:09 PM
Re: Killing multiple processes
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-17-2003 12:20 PM
07-17-2003 12:20 PM
Re: Killing multiple processes
then vi the file pids to put kill -9
(or whatever) at the begining of every line
:%s/^/kill -9 /
make it exacutable
chmod 775 pids
then run it
./pids
Then don't run that script again :)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-17-2003 12:22 PM
07-17-2003 12:22 PM
SolutionThe safest, but not easiest or fastest way, is to determine all the PIDS by
ps -ef | grep -i "filesystem alert"
Then
kill PID(s)
So let's say that PIDs 1065 6544 8732 1208 are all "filesystem alert" PIDs.
kill 1065 6544 8732 1208
I don't like to do "mass" kills via a script or one-liner unless I'm 100% sure the PIDs will all & always be correct. You kill the wrong PID & you can really mess up a system.
Rgds,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-17-2003 12:28 PM
07-17-2003 12:28 PM
Re: Killing multiple processes
SWIth rgard to the 'kill' avoid using a 'kill -9' if at all possible! Use it only as a last resort. 'kil -9' cang't be caught and thus gives a process no chance to cleanup files and remove shared memory segments.
Start with a simple 'kill'. If that doesn't work, try again with 'kill -hup'. As a last resort (only) issue 'kill -9'.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-17-2003 12:34 PM
07-17-2003 12:34 PM
Re: Killing multiple processes
Try this:
ps -ef | grep "filesystem alert" | awk '{print $2}' | xargs kill
Caesar