printing to a redirected stdout from a process that was called with "2>&1 > /dev/null &"

Jason Persampieri helgaorg at gmail.com
Tue Jan 30 16:42:22 CET 2007


Sadly, the group is tied to Python 2.3 for now.

Actually, I got around this problem by using an intermediate process that
happens to handle output on its own (bsub).

On 1/30/07, Chris Lambacher <chris at kateandchris.net> wrote:
>
> The subprocess module is probably a good starting point:
> http://docs.python.org/dev/lib/module-subprocess.html
>
> It will allow you greater control over what happens with the output of a
> process that you start.  Specifically look at the the stdout and stderr
> arguments to Popen.  You can provide these with an open file descriptor or
> a
> file object and it will dump the output into there.
>
> -Chris
> >
> > _jason
> >
> > --
> > http://mail.python.org/mailman/listinfo/python-list
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20070130/139af2c8/attachment.html>


More information about the Python-list mailing list