I just got trained in Perl and i am asked to find out how to connect to a remote windows desktop (Windows Server 2003) from a windows machine (Windows XP Pro SP3) through Perl, researching on this for past one month but of no use. We have been doing this via Remote Desktop Connection for years (mstsc). There are a bunch of Go Grid servers and we log on to it using Remote Desktop and run Perl scripts there. Is it possible to do this through Perl - i.e. logging on to the Go Grid Server (of course its a WAN) with the IP, Username and Password. Then copying the script from local to server, if not possible, just run the scripts that are already there.
I have been trying this with Net::SSH::Perl Module and Net::Telnet Module but it shows error. I'm not even sure whether these modules can be of help to me. Will paste the code and the errors anyways.
$scon = Net::SSH::Perl->new ("xx.xxx.xx.xx", port=>80);
my($stdout, $stderr, $exit) = $ssh->cmd("foo");
Error: Connection closed by remote host at D:\remote.pl line 40
$telnet = new Net::Telnet ( Errmode=>'die', Prompt => '/\$ $/i');
$telnet->open(host=> 'xx.xxx.xx.xxx', Port => 80);
Error: timed-out waiting for login prompt at D:\remote.pl line 74
Please serve the needful. Thank You Monks!!!!!!!!!!!!
20100114 Janitored by Corion: Added formatting, code tags, as per Writeup Formatting Tips