Piping stout to screen on win98

Fredrik Lundh fredrik at pythonware.com
Fri May 4 03:02:38 EDT 2001

Brian wrote:
> Using popen I run a program from python. Is it possible to have the
> stout from it presented on screen as the program runs?

if you only want it to be printed to the screen, use
os.system(command) instead of os.popen(command)

if you want to read it and print it, just print it after
you've read it...

Cheers /F

More information about the Python-list mailing list