mellin has asked for the wisdom of the Perl Monks concerning the following question:
Hi guys, i'm having a problem with my script that uses system command to run Runas.exe with a variable. The idea is just to make Perl ask for the user to run runas.exe with and then execute the command string with System().
Here's the command string i'm trying to make System to run:
runas /user:domain\$user "c:\Program Files\Internet Explorer\iexplore.exe \"c:\""The only variable that needs to be interpolated is $user but all those quotes and escapes are creating a headache for me.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: System command with quotes and variables
by Zaxo (Archbishop) on Apr 16, 2007 at 06:41 UTC | |
by mellin (Scribe) on Apr 16, 2007 at 06:47 UTC | |
by cdarke (Prior) on Apr 16, 2007 at 07:57 UTC | |
|
Re: System command with quotes and variables
by varian (Chaplain) on Apr 16, 2007 at 06:36 UTC |