I've had success with the Net::Telnet module.  But I can't get the SU
command to work.  It times out waiting for a password.

Any ideas?

Thanks!

John

---CODE----
#! perl remote login
use Net::Telnet ();
$telnet = new Net::Telnet (Timeout => 5);

$telnet->open("192.134.1.23");
$telnet->login($user, $pw);

$telnet->cmd("su");

#it never seems to get to this point
$telnet->waitfor('/Password: /');
$telnet->print("the password");


Reply via email to