- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- How to kill all processes started by a particular ...
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
06-17-2008 09:43 PM
06-17-2008 09:43 PM
How to kill all processes started by a particular user
Can anybody tell how to kill all processes started by a user.
regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-17-2008 10:02 PM
06-17-2008 10:02 PM
Re: How to kill all processes started by a particular user
Otherwise you would need to use:
echo kill $(UNIX95= ps -fu user -opid=)
Remove that echo if you are happy it is doing what you want.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-17-2008 10:24 PM
06-17-2008 10:24 PM
Re: How to kill all processes started by a particular user
http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1182794
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-18-2008 12:41 AM
06-18-2008 12:41 AM
Re: How to kill all processes started by a particular user
1) su -
2) kill -9 -1
Best regards.
Ernesto
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-18-2008 02:28 AM
06-18-2008 02:28 AM
Re: How to kill all processes started by a particular user
I would try to explain a bit more:
ps -fu kumar
then you will get processes owned by kumar
Check which process you want to kill by looking the command column and note the PID of it.
kill PID
if PID is 2979
kill 2979
if it does not get killed
kill -9 2979
regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-18-2008 04:09 AM
06-18-2008 04:09 AM
Re: How to kill all processes started by a particular user
================================
To kill "ALL" processes
================================
a) su -
2) kill -9 -1
================================
To kill one process
================================
1) ps -fu
check which process you want to kill and remember his PID (looking PID column - PID=ProcessID).
2) kill -9 PID (as root ... for example kill -9 1000)
Best regards.
Ernesto
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-18-2008 04:17 AM
06-18-2008 04:17 AM
Re: How to kill all processes started by a particular user
Only as a last resort should you use 'kill -9'. To terminate a process begin with:
# kill -1 (known as kill -hup)
# kill -2 (known as kill -int)
# kill -15 (known as kill -term; the default)
# kill -9 (a last resort!)
The first three signals can be trapped by a program. This allows a process to ignore them or to perform some sort of handling like removing temporary files and shared memory segments before exiting.
A 'kill -9' cannot be caught (ignored or handled) by a process and thus there is NO chance for the process to cleanup resources it may have requisitioned.
Be aware that if a 'kill -9' does not eliminate a process it means that the process is waiting on an event (often an I/O). Until the event happens, the process can run again and therefore isn't responsive.
Regards!
...JRF...