Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re^2: how to send input to stdin automatically?

by salva (Abbot)
on Dec 18, 2012 at 09:06 UTC ( #1009319=note: print w/ replies, xml ) Need Help??


in reply to Re: how to send input to stdin automatically?
in thread how to send input to stdin automatically?

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.


Comment on Re^2: how to send input to stdin automatically?
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1009319]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (15)
As of 2015-07-29 12:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (263 votes), past polls