print statements not sent to nohup.out

Jeff McNeil jeff at jmcneil.net
Sat Oct 25 00:32:22 EDT 2008


On Oct 24, 11:58 am, "John [H2O]" <washa... at gmail.com> wrote:
> Just a quick question.. what do I need to do so that my print statements are
> caught by nohup??
>
> Yes, I should probably be 'logging'... but hey..
>
> Thanks!
> --
> View this message in context:http://www.nabble.com/print-statements-not-sent-to-nohup.out-tp201527...
> Sent from the Python - python-list mailing list archive at Nabble.com.

You should get that out of the box.  Chances are it's due to
buffering.  Are you ending your print statements with a comma?  If so,
you'll need to either sys.stdout.flush(), or run python with a '-u'
switch.





More information about the Python-list mailing list