in reply to How to provide input to the password prompt in command prompt using script?

You lmight want to take a look at the Expect or Expect::Simple modules.
  • Comment on Re: How to provide input to the password prompt in command prompt using script?