Dustan DustanGroups at
Sat Apr 14 15:24:12 CEST 2007

On Apr 14, 2:49 am, gbast... at wrote:
> Dear Users,
> I am trying to recover through the python function
> popen3 the stdout,in,err of a launched process.
> I would like also to recover the stdout which you can
> get only through the command:   command1 >& filename
> Do you know how I can access to that stdout by python?

I'm not sure if I understand your entire post, but in python, you get
access to stdout through the sys module:

>>> print 'hello, world!'
hello, world!
>>> import sys
>>> sys.stdout.write('hello, world!')
hello, world!

> Thanks
> GIacomo

More information about the Python-list mailing list