Python script to start VNC over SSH?
scott
smarsh at hotmail.com
Mon Oct 16 22:18:24 EDT 2000
Apparently the following 2 short scripts
(1) start a secure (using SSH) VNC session between a client NT machine
and a server Solaris machine
(2)forward remote port 5902 to local port 5902 and
(3)run a vncviewer process on an NT (local) machine against the
forwarded port:
"
2 scripts. One on each host.
__1st host script_____
#!/usr/bin/perl
use strict;
my $buffer="I made it!!";
system "ssh hostname.com: /path/to/script/to/run.PL $buffer";
___2nd host script ____
#!/usr/bin/perl
use strict;
my $buffer = $ARGV[0];
print `hostname`,"\n$buffer\n";"
"
I don't speak Perl, only a little Java. I'm trying to learn Python and
would be interested to know how the above would be done using Python.
Thanks.
P.S. None of the above represents original thinking on my part. I
searched Deja with the keywords 'ssh' vnc' 'solaris' and basicly
parroted some statements I found.
More information about the Python-list
mailing list