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

I am using sleep to make my script wait for prompt and print statement to provide password to it.

This can never work because system doesn't work like that

You want to use IPC::Run3 or IPC::Open3, see perlipc for background info

  • Comment on Re: How to provide input to the password prompt in command prompt using script?