Perl-Sensitive Sunglasses | |
PerlMonks |
selecting specific command prompt from multiple command promtby ayush (Initiate) |
on Dec 26, 2013 at 12:04 UTC ( [id://1068423]=perlquestion: print w/replies, xml ) | Need Help?? |
ayush has asked for the wisdom of the Perl Monks concerning the following question:
Hello Monks,
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 .
Back to
Seekers of Perl Wisdom
|
|