Read output of command line child process MFC
Can anyone please give me a guideline on how to code the following?
I have an MFC application which should call on a timer basis a python script from command line and read the ouput of that command line.
I thought of using CreateProcess, but i have no clue of how am i going to read the output of the python script which is sent to the command line buffer.
Is there any standard way of doing this?
Thanks in advance.
ktsangop
Junior Poster in Training
54 posts since Jan 2010
Reputation Points: 33
Solved Threads: 0
I think pipes will work for you. Here are a few links you might want to read.
Ancient Dragon
Retired & Loving It
30,049 posts since Aug 2005
Reputation Points: 5,662
Solved Threads: 2,343
ktsangop
Junior Poster in Training
54 posts since Jan 2010
Reputation Points: 33
Solved Threads: 0