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
In reply to Re: How to provide input to the password prompt in command prompt using script?
by Anonymous Monk
in thread How to provide input to the password prompt in command prompt using script?
by pradeep,krishna
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |