En Wed, 14 Feb 2007 19:28:34 -0300, [EMAIL PROTECTED]  
<[EMAIL PROTECTED]> escribió:

> I'm looking for a way to output stdout/stderr (from a subprocess or
> spawn) to screen and to at least two different files.

Look at the tee command. If you control the subprocess, and it's written  
in Python, using the Python recipes would be easier and perhaps you have  
more control.
But if you can't modify the subprocess, you'll have to use tee.

-- 
Gabriel Genellina

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to