Hi,
I am trying to telnet to a remote windows machine using perl. I am using the following code:
use NET::Telnet ();
$remote = new Net::Telnet(Timeout => 10);
$remote->open("machine_nam
e.domainna
me.com");
$remote->login("my_login_n
ame", "my_password");
print $remote->cmd("dir");
And I get the following error:
timed-out waiting for command prompt at D:\Regression Scripts\Junk\ex5.pl line 54.
What should I be using for the prompt---I tried putting in the same prompt that I get when I do a telnet from the DOS; didn't work.
Thanks.
{{200 of 200 points refunded - jmcg - EE Page Editor for Perl}}
Start Free Trial