- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: How do you kill a hung Unix session?
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
Discussions
Discussions
Forums
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
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
тАО01-15-2003 11:17 AM
тАО01-15-2003 11:17 AM
I can see these sessions from "finger" and "who". How do I kill the sessions?
Thanks!
Mary P.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-15-2003 11:47 AM
тАО01-15-2003 11:47 AM
Re: How do you kill a hung Unix session?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-15-2003 11:51 AM
тАО01-15-2003 11:51 AM
Re: How do you kill a hung Unix session?
Don't start with a 'kill -9'. This isn't trappable and doesn't give a process any chance to cleanup memory and/or temporary files.
Try a kill like:
# kill -hup
# kill -term
...and as a last resort:
# kill -9
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-15-2003 11:53 AM
тАО01-15-2003 11:53 AM
Re: How do you kill a hung Unix session?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-15-2003 12:01 PM
тАО01-15-2003 12:01 PM
Re: How do you kill a hung Unix session?
Hope it helps
John
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-15-2003 01:13 PM
тАО01-15-2003 01:13 PM
SolutionA couple of tricks with the 'ps' command:
If you want to see the processes for a certain user, you can do:
ps -fu jpoff
will show all of my processes.
If you want to see all the processes associated with a certain tty, try this:
ps -ft ttyp1
will show all the processes associated with the ttyp1 port. It saves you having to grep for what you are looking for.
To kill the user processes, once you find them, I usually start with a kill -15 PID. If that doesn't work, I usually have pretty good luck sometimes with a kill -2 PID.
As James has mentioned, the kill -9 is the last resort. It will kill the process but it will leave open any files or memory the process was using, which might leave you with the same problem you had when the process was running.
JP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-15-2003 01:14 PM
тАО01-15-2003 01:14 PM
Re: How do you kill a hung Unix session?
-Mary P.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-15-2003 01:23 PM
тАО01-15-2003 01:23 PM
Re: How do you kill a hung Unix session?
grep the tty port thay are conected to with your ps -ef|grep ttyp1 or whatever it may be and kill those PIDs
this should clear any process the user started
g'luck