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.

I think pipes will work for you. Here are a few links you might want to read.