kalenz has asked for the wisdom of the Perl Monks concerning the following question:
So: 1) windows runs myprogram.exe, which itself 2) accepts non-system(i.e. myprogram-specific) commands which take input and produce output The goal is to automate this so as to say "run myprogram, then mycommand1, take the second output of the second line and run mycommand2 with this as an argument" Can this be done in perl? Sure I can do system "myprogram", but I am not sure how the rest will be captured and fed into mycommand1,2c:>myprogram #### Welcome to myprogram myprogram #mycommand1 results of mycommand 1 were: 1 joe 2 sue myprogram #mycommand2 sue your answer is: 15 myprogram #quit
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Tough automation question on windows
by Marshall (Canon) on Apr 16, 2010 at 14:33 UTC | |
|
Re: Tough automation question on windows
by BrowserUk (Patriarch) on Apr 16, 2010 at 15:53 UTC | |
by Anonymous Monk on Apr 16, 2010 at 23:21 UTC | |
|
Re: Tough automation question on windows
by tokpela (Chaplain) on Apr 17, 2010 at 04:16 UTC |