LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   auto-terminate VNCServer? (https://www.linuxquestions.org/questions/linux-networking-3/auto-terminate-vncserver-61490/)

scrawl 05-24-2003 12:35 AM

auto-terminate VNCServer?
 
My webserver is up, firewalls are in firewalling, Remote Desktop works beautifully and Linux no longer seems so alien. Time to extend the learning curve:

At the moment, I use openSSh & Putty to establish a connection between my Mandrake 9.1 box and my WinXP Pro box. After logging in, I will start the Tight-VNC server manually by entering 'vncserver' at the prompt.

I then start up tightVNC client on my XP pro box, and all is good.

Once I am finished, I close tightVNC client, and back in bash, enter 'vncserver -kill :1' before closing Putty.

What I would like to do is automate the process:

1. After establishing a Ssh connection, I would like 'vncserver' to automatically run.
2. When the Ssh connection is disconnected for any reason, I would like vncserver to shutdown

Any ideas how I would go abouts in doing this?

- Scrawl


All times are GMT -5. The time now is 07:57 PM.