Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Hi,
I want to connect a remote windows desktop from a windows machine using Telnet . while executing my program i got error like
timed-out waiting for log in prompt
i used below code
use Net::Telnet(); $telnet = new Net::Telnet ( Errmode=>'die', Prompt => '/\$ $/i'); $telnet->open(host=> 'xxx.xxx.xxx', Port => 80); $telnet->login('username', 'password'); print $telnet->cmd('who');
Regards,
Senthil
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Time out error as I connect to remote desktop server using telnet
by Corion (Patriarch) on Oct 04, 2011 at 09:48 UTC | |
by Anonymous Monk on Oct 04, 2011 at 11:00 UTC | |
by marto (Cardinal) on Oct 04, 2011 at 11:05 UTC | |
by Anonymous Monk on Oct 04, 2011 at 11:11 UTC | |
by marto (Cardinal) on Oct 04, 2011 at 11:17 UTC | |
|