Question: spawn and redirection

Ladvánszky Károly aa at bb.cc
Fri Feb 13 10:21:06 EST 2004


I'd like to redirect the program output into a file.

"Peter Hansen" <peter at engcorp.com> az alábbiakat írta a következo
hírüzenetben: 402CEC44.EFE48130 at engcorp.com...
> "Ladvánszky Károly" wrote:
> >
> > On Windows, what is the proper way to spawn an executable and redirect
its
> > stdout and stderr.
>
> Redirect them where?  The answer might well be different (e.g. os.system
vs.
> os.popen) if you are redirecting them to a file versus redirecting them
back
> to the calling program.
>
> -Peter





More information about the Python-list mailing list