in reply to Re: Re: Net::Telnet and changing passwords
in thread Net::Telnet and changing passwords
and from what I can see from debug() you are getting/new password:
I don't think the conditionEnter l+ogin(NIS+ ) password
Is being met...waitfor() is just sitting there waiting for that prompt to match and it isn't so you never get to$telnet->waitfor('/new password: ?$/i') or report_error("ERROR", "No p +assword prompt found, contact Information Technologies: ");
$telnet->print($new_password);
Of course, I haven't tried it on a real machine but this looks to me to be the possible cause of your quandry.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Re: Net::Telnet and changing passwords
by jcpunk (Friar) on Jun 30, 2003 at 14:05 UTC |