Linux - EnterpriseThis forum is for all items relating to using Linux in the Enterprise.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I am experiencing a problem with the "who -u" command in that it is displaying sessions that are no longer signed on to the server. Consider the following output from the "who -u" command:
gooduser pts/1 Jan 30 08:00 . 3173 (192.168.1.106)
intv1407 pts/62 Jan 29 18:45 ? 17430 (DTCLV01.somecompany.com)
intv1207 pts/29 Jan 29 17:29 ? 11714 (DTCLV01.somecompany.com)
intv1208 pts/49 Jan 29 17:32 ? 12459 (DTCLV01.somecompany.com)
intv1215 pts/75 Jan 29 17:35 ? 13766 (DTCLV01.somecompany.com)
intv1415 pts/14 Jan 29 19:32 ? 19155 (DTCREAD.somecompany.com)
With the exception of "gooduser", none of the other users that are displayed are actually logged in. If I perform a "ps -fp" on any of the processes listed in the 4th column (except for 3173), no details are shown. If I attempt to "kill -9" any of those processes, I receive output similar to:
[tom@cascadia ~]$ kill -9 17430
bash: kill: (17430) - No such process
[tom@cascadia ~]$
How can I remove those "dead" processes from the listing preferably without rebooting the server? This is a "24 x 7" never-shut-down servers that should not be rebooted unless the end of the world is near! Please note that this server is running Red Hat Enterprise 4 AS.
Those are zombie processes. The telnet session has died, but there
are still processes running in subshells. In other words, someone
started a process while logged in through telnet and ended their session
without killing all their processes first. If you find and kill the
other processes, the zombie telnet sessions will disappear.
As luck would have it, the sessions disappeared all on their own, so the subprocesses owned by those sessions must have terminated or been killed somehow. I'll keep a note of your suggestions for the next occurrence of this problem. Many, many thanks for your help. Happy Linux-ing!!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.