What I have tried to do is force VNC to restart the session using a command in the .twmrc menu called Restart.
I have several VNC sessions running on a RedHat 7.2 server. I want each user to be able to shutdown and restart their VNC connection if they want (for instance, if they make any changes to their shell settings). I thought that sending this command: vncserver -kill :1 | sleep 3 | vncserver :1 would kill the VNC session running on port 1, wait, then restart the server on port 1. Well, the kill command works fine, but the session never starts up again. I even tried sending the commands via su: su username -c "vncserver -kill :1 | sleep 3 | vncserver :1" but that did the same thing. The only way to make this work so far is I allow the users to Quit (not Restart) and then I start their session manually. Very stinky, but the users don't restart their sessions too frequently. If anybody has any ideas, I would be happy to hear them. > -----Original Message----- > From: Bruce Douglas [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, December 11, 2002 11:41 AM > To: [EMAIL PROTECTED] > Subject: logging out of display manager... > > > Hi... > > Relatively new to VNC.. I have the VNC server steup on a > Linux box. I have > it configured to use GNOME as the display manager. I'm able > to connect using > a client eith no problem. The issue I'm trying to better > understand has to > do with logging out or stopping the session of VNC on the > server. When I > logout of the session on the Linux box, (using the "Logout" > button from > GNOME), the screen seems to still leave a term window running. > > My question, is there a way to kill the session of the GNOME > display window, > without killing the vncserver? Or, do I not quite uunderstand > how to use > VNC. I assumed that once I had the VNC server running, I > could more or less > remotely log into the Linux bos, using VNC to remotely > display the desktop. > I'm really just looking for the right/correct way to shut > down/kill the > desktop. > > Also, if I want to allow multiple sessions/users to connect > to the Linux > box, do I have to start multiple sessions/display windows > during the initial > startup of VNC?? > > Thanks > > Bruce Douglas > [EMAIL PROTECTED] > _______________________________________________ > VNC-List mailing list > [EMAIL PROTECTED] > http://www.realvnc.com/mailman/listinfo/vnc-list _______________________________________________ VNC-List mailing list [EMAIL PROTECTED] http://www.realvnc.com/mailman/listinfo/vnc-list