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


in reply to How do I have Perl send the password to a program that prompts for a password

You may have to use Expect.pm