Re: Shell re-direction

2005-03-20 Thread Jeff Epler
buffering. In the first case, there is either no buffering, or line buffering on sys.stdout, so you see the lines in order. In the second case, there is a buffer of a few hundred or thousand bytes for stdout in the python process, and you see the two lines of python output together (in this case,

Shell re-direction

2005-03-20 Thread Mike Gould
Hi all, I have a very strange problem with the output run from commands run via os.system(). If the python script is run without re-direction the output appears as expected, but if I re-direct the output from the script the output gets re-ordered. For example given the following script: import