djkumar72 has asked for the wisdom of the Perl Monks concerning the following question:
if i use waifor('/login: ?$/i') after "open" it throws read error: An operation was attempted on something that is not a socket. I am struck with this issue, please help me!use Net::Telnet (); $telnet = new Net::Telnet(Timeout=>20,Prompt => '/[\$%#>] $/'); $telnet->open("machine"); $telnet->login("username","password"); print "Logged into the system \n";
Edited by Arunbear: Changed title from 'Help!', as per Monastery guidelines
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Windows Net::Telnet problem
by polettix (Vicar) on Jul 05, 2005 at 08:11 UTC | |
by djkumar72 (Initiate) on Jul 05, 2005 at 10:33 UTC | |
|
Re: Windows Net::Telnet problem
by chas (Priest) on Jul 05, 2005 at 12:25 UTC |