http://www.perlmonks.org?node_id=1050134


in reply to Password prompt

Hi,

when the password is read from STDIN you can simply write it to STDIN. But in most cases the password is read from the console device when the shell is interactive. Then you have a chance to do it with Expect.

McA