- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: killing login 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
тАО12-25-2005 05:27 PM
тАО12-25-2005 05:27 PM
Re: killing login session
kill -9 `ps -ef|grep $LOGNAME|grep -v grep| defunct|awk '{print $2}'`
-Arun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-25-2005 06:11 PM
тАО12-25-2005 06:11 PM
Re: killing login session
Thanks everyone for your help.
One thing is not clear. As shown in my post above, who command shows more sessions but ps -ef|grep sksonkar shows fewer sessions.
Using kill command i can kill only those sessions who are visible using ps -ef|grep sksonkar command.
What is the easiest way to clean all the sessions which are showing up using who or who -u|grep sksonkar command ?
Thanks,
Shiv
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-25-2005 06:17 PM
тАО12-25-2005 06:17 PM
Re: killing login session
the use of xargs with the kill command
to kill off all processes associated with "ptc":
ps -ef | grep ptc | xargs kill -9 `awk '{print $2 }'`
to kill off all processes associated with "oli":
ps -ef | grep oli | xargs kill -9 `awk '{print $2 }'`
to kill off all processes associated with "etscape":
ps -ef | grep etscape | xargs kill -9 `awk '{print $2 }'`
Good Luck,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-25-2005 06:19 PM
тАО12-25-2005 06:19 PM
Re: killing login session
if you see man who:
The who command can list the user's name, terminal line, login time, elapsed time since input activity occurred on the line, the user's host name, and the process-ID of the command interpreter (shell) for each current system user. It examines the /etc/utmp file to obtain its information. If file is given, that file is examined. Usually, file is /var/adm/wtmp, which contains a history of all of the logins since the file was last created.
so you should start with trimming the /etc/utmp file...
hope this helps!
kind regards
yogeeraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-25-2005 08:15 PM
тАО12-25-2005 08:15 PM
Re: killing login session
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=574109
-Arun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-25-2005 10:59 PM
тАО12-25-2005 10:59 PM
Re: killing login session
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-26-2005 08:02 PM
тАО12-26-2005 08:02 PM
Re: killing login session
who -Hu|awk '/sksonkar/ {print "kill " $7}'|sh
This command will kill all the pid showed by who command for user sksonkar.
HTH,
Art
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-27-2005 08:53 AM
тАО12-27-2005 08:53 AM
Re: killing login session
sksonkar ttyqf Sep 26 19:51
What happens when you try to grep ttyqf?
ps -ef | grep ttyqf
If nothing shows up, like Bill said you are going to have to reboot and it will clear it up.
Like I said I have only seen this twice. These 2 occasions happened within on a couple of months apart, but with different seperate users and not myself and not so many of them like you. I was never able to figrue out what happened, only that it has stopped. On your system, you are the one with issues, I am curious to see if you can figure how happens
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-27-2005 10:38 AM
тАО12-27-2005 10:38 AM
Re: killing login session
After joining this forum i came to know how little unix i know.
Regards,
Shiv
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-05-2006 08:51 PM
тАО01-05-2006 08:51 PM
Re: killing login session
i want to take hp ux m/c archive to store in network pc using net_recover , pls give me some description on that.
- « Previous
-
- 1
- 2
- Next »