[Zope] Catching the print

Peter Bengtsson mail@peterbe.com
Fri, 24 Aug 2001 09:29:47 +0200


> Peter Bengtsson writes:
>  > In Linux I currently use the nohub program.
>  >
>  > $ nohub ./start &
>  >
> Add:
>
> from sys import stdout
> stdout.flush()
>
> after your print statement and you will see the output
> immediately in "nohup.out".

Thank you very much!
It works good. However, I'll have to do this stdout python business each
time I want to print something?