How to kill all VNC sessions

Daniel Tan danieltan "at" shopnsave.com.sg
Thu, 10 Jan 2002 01:39:22 +0000


Hi,
     i have encounter a rather troublesome problem, is there a command or
way to kill off a VNC session? i tried using vncserver -kill:1 but it
doesn't die off but reload. I found out that to kill off any VNC session i
had to do the following
1) ps -ef (to check Xvnc session pid)
2) kill -9 "Xvnc pid"
3) delete .X1-lock file under /tmp and .X1 file under /tmp/.X11-unix
      then after that can start new Vnc session for number 1.
4)and i also deleted the /home/user/.vnc/server:1.log and server:1.pid files
it is tedious to do all these steps...or there only way out is to kill my
own script?

i am using Redhat 7.0 and the default Vnc installed together in the package
---------------------------------------------------------------------
To unsubscribe, mail majordomo "at" uk.research.att.com with the line:
'unsubscribe vnc-list' in the message BODY
See also: http://www.uk.research.att.com/vnc/intouch.html
---------------------------------------------------------------------