Best way to capture output from an exec'ed (or such) script?

gregpinero at gmail.com gregpinero at gmail.com
Sat Aug 4 17:52:16 EDT 2007


On Aug 3, 11:14 am, "gregpin... at gmail.com" <gregpin... at gmail.com>
wrote:
> On Aug 2, 7:32 pm, "Gabriel Genellina" <gagsl-... at yahoo.com.ar> wrote:> If your web server is multithreaded (or you use some other way to process
> > many simultaneous requests) you have to be more careful - remember that
> > sys.stdout is global, you must find a way to distinguish between output
> >  from different processes all going into the same collector.
>
> Any ideas on how to do this?  Is it even possible?
>
> -Greg

I'm actually worried about this now.  Does anyone know of any
potential solutions?  Anything to at least get me started?

-Greg




More information about the Python-list mailing list