flyingmoose has asked for the wisdom of the Perl Monks concerning the following question:
Win32::Process does not allow this (I've looked), and it appears I could just use the "RunAs" command, but the problem with that is you can't specify the password on the command line -- I intend to gather the password from a Tk dialog. So, if I did use RunAs, I'd need to drive it with something like Expect (but for Win32). Any ideas how to do this cleanly?
Any good module recommendations? I'd rather not shell out to runas if I can help it, since I'm not sure runas ships with all Windows versions, and I'm not sure how to feed the password to the RunAs.exe binary once it is running.
Thanks folks -- I appreciate your help!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Running Win32 binary as arbitrary user -- in Perl
by gellyfish (Monsignor) on Apr 29, 2004 at 14:29 UTC | |
by arden (Curate) on Apr 29, 2004 at 14:38 UTC | |
by flyingmoose (Priest) on Apr 29, 2004 at 14:33 UTC | |
|
Re: Running Win32 binary as arbitrary user -- in Perl
by flyingmoose (Priest) on Apr 29, 2004 at 15:01 UTC | |
by Mungbeans (Pilgrim) on Apr 29, 2004 at 15:12 UTC | |
by flyingmoose (Priest) on Apr 29, 2004 at 16:06 UTC | |
|
Re: Running Win32 binary as arbitrary user -- in Perl
by flyingmoose (Priest) on Apr 29, 2004 at 18:37 UTC |