slloyd has asked for the wisdom of the Perl Monks concerning the following question:
It does not seem to be sending the password. I get the following output:my $exe='myprogram.exe'; my $user='tester'; my $pass='lab'; my $cmd=qq|runas /profile /user:$user "$exe"|; open(FH,"| $cmd") || die $^E; print FH $pass; close(FH);
What am I doing wrong?H:\Products\Sandbox>runas.pl Enter the password for tester: Attempting to start myprogram.exe as user "GUYBOX\tester" ... RUNAS ERROR: Unable to run - myprogram.exe 1326: Logon failure: unknown user name or bad password.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Runas using open
by BrowserUk (Patriarch) on Jun 12, 2005 at 02:28 UTC | |
by slloyd (Hermit) on Jun 12, 2005 at 04:46 UTC | |
|
Re: Runas using open
by Zaxo (Archbishop) on Jun 12, 2005 at 02:09 UTC | |
|
Re: Runas using open
by monarch (Priest) on Jun 12, 2005 at 02:07 UTC |