next up previous contents index
Next: About KILL usage Up: Frequently Asked Questions Previous: I'm been flooded

How do I get rid of a ghosted IRC session ?

Sometimes you may have a ``ghosted'' IRC session,  a process still running on your machine you would like to get rid of, but can't control anymore to issue a QUIT command. Going back to a unix shell, try listing your processes:  (`` ps -ux'' or `` ps -f'' depending on your system)

poly ~ > ps -ux
USER       PID %CPU %MEM   SZ  RSS TT STAT   TIME COMMAND
pioch    10410  1.4  0.2  839  402 pf S      0:00 /usr/local/bin/emacs
pioch    25441  0.6  0.9 2888 1908 ?  S      0:32 xterm -ls
pioch    25444  0.4  0.2  550  341 pf S      0:17 -tcsh (tcsh)
pioch    10404  0.1  0.3  897  624 pf S      0:00 irisVx 5 4 10403
pioch    25634  0.0  0.3 1022  678 p6 S      0:22 irc
pioch    25451  0.0  0.2  953  326 ?  S      0:07 xmailbox
pioch    25452  0.0  0.1  386  147 ?  S      0:00 xdaliclock
pioch    25459  0.0  0.3 1109  617 ?  S      0:02 xman
pioch    10403  0.0  0.1  574  124 pf I      0:00 mapleV
pioch    10423  0.0  0.2  614  459 pf R      0:00 /bin/ps -ux

Locate the line about your IRC lost session ( irc should appear in the COMMAND field of the line), and its PID (process number, second field of the line here). In this example the PID is 25634, as shown here:

USER       PID %CPU %MEM   SZ  RSS TT STAT   TIME COMMAND
pioch    25634  0.0  0.3 1022  678 p6 S      0:22 irc

All you need to type then is `` kill -KILL'' or `` kill -9'' immediately followed by the PID found above: `` kill -KILL 25634'' here.  

You can get more details about the commands involved here in the standard unix manual (`` man 1 ps'' or `` man 1 kill'').

If your machine crashed, and your nick is still in use on the IRC network, you'll have to wait 4 or 5 minutes for your server to recognize the fact. Getting an Operator to kill the ghost is almost never necessary, just sign on as another nickname and wait for the `` Ping timeout'' or `` Bad link'' message, then you can change your nick back...  



next up previous contents index
Next: About KILL usage Up: Frequently Asked Questions Previous: I'm been flooded


Nikos Drakos
Thu Jan 12 11:58:54 GMT 1995