At the moment I can connect via VNC to my work (Unix) from home (Windows). However, to do this I have to:
1) open an ssh terminal conection
2) start the vnc server
3) Note the display I have been allocated
4) Set up an ssh tunnel to the necvcesary display
5) Launch the vnc viewer
It seemed to me that since this process is so repetative, it ought to be possible to write a script to do it for me - just requiring password and username to be entered once, and doing thje rest automatically - minor problem, I know very litle about
perl scripting. The first (of many, I expect) problems is that because of the way the server has been installed, if I log out, the vncserer is killed. Therefore,
I need to be able to ssh in, get the display number, and then leave the process running until the tunnel is set up, so that at no point do I log out. This would involve
running 2 processes at once, and as I understand is, system() waits for the process to end before continuing.
This may well be the first of many questions to the forum on this topic ......
Cheers,
Ben
Start Free Trial