help!! getting output from another process line by line, using popen

Michael Hudson mwh at
Fri Jan 17 12:25:01 CET 2003

cout <cout at> writes:

> There are 2 python scripts, one is to print out the output(,
> the other is supposed to get std output from line by line.
> However, it only get all the result after 40 seconds. Not during the
> executing process. Any ideas?

Yes, but you probably don't want to hear them <wink>.

This is probably all to do with terminals and the mysterious concepts
of "line discipline" and ptys and things.  How badly do you want this
to work?


  Those who have deviant punctuation desires should take care of their
  own perverted needs.                  -- Erik Naggum, comp.lang.lisp

More information about the Python-list mailing list