in reply to Run interactive commands with "Net::SSH::Expect"
Have you tried increasing your timeout?'password:\s*'
You might also want to make each error message within your program unique, so that you know for sure where the error is occurring.$ssh->waitfor('password:\s*',100) or die "Where is the password prompt +??";
$ssh->waitfor('password:\s*',100) or die "Where is the FIRST password +prompt??";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Run interactive commands with "Net::SSH::Expect"
by slayedbylucifer (Scribe) on Jan 10, 2011 at 17:45 UTC | |
by slayedbylucifer (Scribe) on Jan 13, 2011 at 11:12 UTC |