chennaiite has asked for the wisdom of the Perl Monks concerning the following question:
I want to connect to the remote ip address(host)... Always i am getting "Timed out waiting for login prompt at line no 4.....use Net::Telnet. my $telnet = Net::Telnet->new(Host=>'hostname',Prompt=>'/[%#>] $/'); $telnet->open('host'); $telnet->login('user', 'Passwd'); print $telnet->cmd('who');
How to correct to prompt regexp for windows.....
I will be pleased if you give any suggestions regarding this.....Thanks.....
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Net Telnet problem for windows
by Limbic~Region (Chancellor) on Aug 19, 2005 at 15:00 UTC | |
|
Re: Net Telnet problem for windows
by Roger (Parson) on Aug 19, 2005 at 15:04 UTC |