Best option to launch application and cath stderror and stdoutput
Posted on 2005-05-13
Hi Python Experts
I have written a script that launch several commands with several options, this is for testing an application
I am using something like:
tochild, fromchild, childerror = os.popen3(my_command,'r')
err = childerror.readline()
output = fromchild.readline()
Now, I would like to asure that before err = childerror.readline() , all the process has efectively finished....
I know there is a a method call poll() and some other wait(), but I don know how to use them....
Or maybe there is a better way to do this...