Hi. If you do not need the output from your runas program, you could try opening an output filter to the command, then printing the password to it:
open(PROGRAM,"| runas /user:username command"); print PROGRAM "password\n";
In reply to Re: Pass expected input to Windows program
by amrangaye
in thread Pass expected input to Windows program
by disciple
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |