Re: Capturing output with input

2007-10-29 Thread gopala
On Oct 29, 9:03 am, "Gabriel Genellina" <[EMAIL PROTECTED]> wrote: > On Linux, use the "script" command. > On Windows, select the region to copy using the mouse and paste it onto a > notepad file. > I don't think Python would help here. Thanks :-) Now i just do os.system(exeFile) and i can easil

Re: Capturing output with input

2007-10-28 Thread Gabriel Genellina
En Sun, 28 Oct 2007 15:39:07 -0300, gopala <[EMAIL PROTECTED]> escribi�: > My initial attempts of using spawn.. , exec.. pipe.. failed since they > can't capture the std input and std output continuously. > The lab1.exe will be something like > > Enter 2 nos > 2 3 > The sum is 5 > > Now i should

Capturing output with input

2007-10-28 Thread gopala
Hi, I am pretty new to python but i do have experience with c++. As a part of learning exercise i wrote a python script to insert beautifying comments(with name, problem...) to our lab program source files (c language). The script is working for most of the cases. The problem is i also need to app