runas.exe does not read passwords from stdin. It uses a call, CredUICmdLinePromptForCredentials() from a system dll that accesses the console directly. I assume that this is designed as a security measure.
You may be able to use Win32::Console to obtain a handle to the current console and the WriteInput() method to drive the program. This is an untested idea.
In reply to Re: Runas using open
by BrowserUk
in thread Runas using open
by slloyd
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |