Welcome to the Monastery | |
PerlMonks |
Re^2: how to send input to stdin automatically?by salva (Canon) |
on Dec 18, 2012 at 09:06 UTC ( [id://1009319]=note: print w/replies, xml ) | Need Help?? |
ssh (as most programs asking for a password) does not read the password from stdin but from the process tty, so not opening a pipe neither using any of the modules you have named will work.
The usual solution to automate password authentication is to use Expect.
In Section
Seekers of Perl Wisdom
|
|