output to console and to multiple files

nathan.shair at gmail.com nathan.shair at gmail.com
Wed Feb 14 17:28:34 EST 2007


Hello,

I searched on Google and in this Google Group, but did not find any
solution to my problem.

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

eg.
stdout/stderr -> screen
stdout -> log.out
stderr -> log.err

and if possible
stdout/stderr -> screen and log.txt

3 files from stdout/stderr




More information about the Python-list mailing list