in reply to Net::telnet login

I don't have any experience with Net::Telnet, but from browsing through the manual I saw a few things that could be of some help. You might want to use the Prompt value of the login() method to specify which prompts to reply to as opposed to using a waitfor, and possibly, when this fails, instead of doing input_log(), you might try dump_log(). The full syntax of login() is:

$ok = $obj->login(Name => $username, Password => $password, [Prompt => $match,] [Timeout => $secs,]);

so you also could try setting the timeout longer. It seems to me that this probably doesn't have to do with how you are inputting the password, but rather where the password is being inputted.

Replies are listed 'Best First'.
Re^2: Net::telnet login
by state-o-dis-array (Hermit) on Dec 15, 2004 at 18:44 UTC
    The login and password prompts do appear to be caught correctly, I should have stated so, but the error is not a timeout, but that the user name or password is not correct. The tellog.txt shows that the correct username is input at the login prompt, then it shows the password prompt (wihtout the input which I would think is proper), then it shows another login prompt.