[nzlug] Stale "who" entries

Raimund Eimann raimund at cs.auckland.ac.nz
Mon Oct 9 09:36:56 NZDT 2006


Hi,

when an SSH connection breaks down, I frequently end up with stale entries in 
the output of "who". Is there a way to remove them?

midgard:~ # who
root     pts/0        2006-09-23 16:31 (ultra2.wmf.dyndns.org)
sarah    pts/1        2006-10-08 09:28 (calypso.wmf.dyndns.org)
peter    pts/2        2006-10-09 09:14 (fides.wmf.dyndns.org)
michael  pts/3        2006-09-05 21:48

In the list above, the last entry does not seem to have any process associated 
with it, i.e., ps -ef |grep "pts/3" returns nothing except for the grep 
itself.

Cheers,
Raimund

Today's wisdom:
A journey of a thousand sites begins with a single click. 




More information about the NZLUG mailing list