Question: spawn and redirection

Peter Hansen peter at engcorp.com
Fri Feb 13 13:39:51 EST 2004


"Ladvánszky Károly" wrote:
> 
> Thanks for your advice. os.system() is not suitable in all cases as it
> always waits for the started process to terminate.
> 
> "Peter Hansen" <peter at engcorp.com> az alábbiakat írta a következo
> hírüzenetben: 402CFAFD.1434C87F at engcorp.com...
> > "Ladvánszky Károly" wrote:
> > >
> > > I'd like to redirect the program output into a file.
> >
> > I'd just us os.system then, as in
> >
> >  os.system('command >somefile')

On Windows, you would simply to this instead then, I believe:

   os.system('start command >somefile')

-Peter



More information about the Python-list mailing list