ayush has asked for the wisdom of the Perl Monks concerning the following question:
I am trying to write a perl script that would access and execute command in another command prompt.
Explanation: Windows command prompt 1 is executing a perl script , and executes a system command that opens another command prompt ,with some set environment variables , now once the other prompt is opened i want to execute different sequence of commands in the newly opened prompt,
Is there any way where i can search process (in this case a command prompt) , and then input that process with a .bat file,
Tried something like
$pid = open("$nameofprompt" , "|$args"); but NO luck,
unfortunately the platform is windows, any kind of help would be a help,
thanks .
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: selecting specific command prompt from multiple command promt
by ww (Archbishop) on Dec 26, 2013 at 12:16 UTC | |
|
Re: selecting specific command prompt from multiple command promt
by VincentK (Beadle) on Dec 26, 2013 at 15:33 UTC | |
|
Re: selecting specific command prompt from multiple command promt
by jellisii2 (Hermit) on Dec 26, 2013 at 15:17 UTC | |
|
Re: selecting specific command prompt from multiple command promt
by Laurent_R (Canon) on Dec 26, 2013 at 16:14 UTC | |
|
Re: selecting specific command prompt from multiple command promt
by renegadex (Beadle) on Dec 27, 2013 at 01:30 UTC |