Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Runas using open

by slloyd (Hermit)
on Jun 12, 2005 at 01:58 UTC ( [id://465886]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $exe='myprogram.exe';
    my $user='tester';
    ...
    open(FH,"| $cmd")  || die $^E;
    print FH $pass;
    close(FH);
    
  2. or download this
    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.
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://465886]
Approved by monkfan
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (2)
As of 2024-04-25 19:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found