|We don't bite newbies here... much|
How to get output from a spawned cmd prompt?by Xhings (Acolyte)
|on Jan 21, 2010 at 07:19 UTC||Need Help??|
Xhings has asked for the
wisdom of the Perl Monks concerning the following question:
This is my first post.
I am trying to get the output of an executable in a file. This worked fine with Win2003 but on win2008 server due to compatibility issues, I changed the settings to win2003 SP1 for the executable to run. Honestly I am working on 2008 for the first time.
I see that the out put is getting forked in a new cmd prompt and exits after execution.Is there a way I can get the o/p from this forked window?
Error from the below program in my output file is "child exited with value 0".I am opeing a Dir, running tool.exe for each of the file in side it and spooling output to my file.