joyeux has asked for the wisdom of the Perl Monks concerning the following question:
This is my code
could plz someone help meuse Net::Telnet $t=new Net::Telnet(Timeout =>100, Prompt => '/[\$?>:#\]]*$/'); if($t->open('192.168.1.200')) { print "connected"; } else { print "not connected"; } # if i give wrong user name and password also it didnt<br/> show #error msg $t->login('test','test123'); @lines=$t->cmd("ls"); # always prints 1 $t->close;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Problem with net::telnet
by 2teez (Vicar) on Dec 06, 2012 at 05:39 UTC |