- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- how kill user process?
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-2007 06:41 PM
06-17-2007 06:41 PM
how kill user process?
pls help me.
Sandeep Daphal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-17-2007 07:22 PM
06-17-2007 07:22 PM
Re: how kill user process?
So you need to login as root and use:
# ps -ef | grep jsmith
jsmith 1234 1231 1 18:20 pts/1 0:20 foo
Or you could use:
# ps -ef | grep foo
jsmith 1234 1131 1 18:20 pts/1 0:20 foo
In either case, ps tells you the process id to kill is '1234' (not '1131' - that is the parent process id), so to kill the 'foo' process use:
# kill 1234
Or you might need 'kill -9' or one of the other options ('man kill' for details).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-17-2007 07:23 PM
06-17-2007 07:23 PM
Re: how kill user process?
kill `ps -ef | grep
Best Regards
Murat
HP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-17-2007 08:35 PM
06-17-2007 08:35 PM
Re: how kill user process?
The first field(string) of each line of output is the user who is the owner of the process , the second field(number) is the PID of the process and the third field(number) is the PID of the parent of that process.
You can kill a process by using the kill command
kill -SIGNUM PID(second field)
You can use one of many signals avalable. But avoid using SIGKILL(9) , because it forcefully kill a process. you can use SIGTERM for a a graceful exit if the process has done some handling for SIGTERM.
e.g.
kill -TERM 3245
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-17-2007 09:06 PM
06-17-2007 09:06 PM