LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 05-24-2003, 12:35 AM   #1
scrawl
LQ Newbie
 
Registered: May 2003
Posts: 8

Rep: Reputation: 0
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Robust vncserver startup file (rc.vncserver) arobinson74 Slackware 4 05-14-2005 05:33 AM
How to terminate this command slpwkr Programming 4 03-28-2005 11:33 AM
terminate the connection ust Linux - General 1 03-19-2005 10:07 AM
How to terminate X application? drj000 Linux - Software 1 02-10-2005 07:40 PM
How can I terminate an application? yangyiqi Linux - Software 7 12-10-2003 06:39 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 11:23 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration