- Community Home
- >
- Servers and Operating Systems
- >
- Legacy
- >
- Operating System - Tru64 Unix
- >
- Kill old processes
Operating System - Tru64 Unix
1748169
Members
4008
Online
108758
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
Go to solution
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
тАО06-05-2007 04:05 AM
тАО06-05-2007 04:05 AM
I have a number of process that I need to kill. They all have a common string in the process name (the keyword "check" in this case). Is there a way to do this without a separate kill command for each process? I am not familiar with Tru64. Thanks.
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-05-2007 04:16 AM
тАО06-05-2007 04:16 AM
Solution
RJA,
This should work:
ps -eo pid,cmd | grep check | grep -v grep | awk '{print $1}' | xargs kill
But proceed with caution, in other words, use at your own risk. Any other processes with 'check' in it will be terminated as well.
Vic
This should work:
ps -eo pid,cmd | grep check | grep -v grep | awk '{print $1}' | xargs kill
But proceed with caution, in other words, use at your own risk. Any other processes with 'check' in it will be terminated as well.
Vic
There are 10 kinds of people, one that understands binary and one that doesn't.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-05-2007 04:56 AM
тАО06-05-2007 04:56 AM
Re: Kill old processes
It would be good if you post a sample ps output, to avoid posting commands that may kill process that you don't want to kill.
A sample command could be like this:
kill `ps auxw |grep check |awk '{print $2}'`
You can create an alias in your .profile, for example:
alias killcheck="kill `ps auxw |grep check |awk '{print $2}'`"
Then all you have to do is to run the killcheck command.
A sample command could be like this:
kill `ps auxw |grep check |awk '{print $2}'`
You can create an alias in your .profile, for example:
alias killcheck="kill `ps auxw |grep check |awk '{print $2}'`"
Then all you have to do is to run the killcheck command.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-05-2007 07:16 AM
тАО06-05-2007 07:16 AM
Re: Kill old processes
thanks !
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