On Mar 8, 2005, at 9:59 PM, David Binger wrote:
> Mario Ruggier wrote:
>
>> I would prefer if I could have simple_server write its logging to
>> file (yes, i know what the simple in its name implies... ;) to
>> facilitate some debugging. Is there a trick how to obtain this, even
>> at os (X) level, however unpretty ?
>
> This works for me:
> python server/simple_server.py 2>log
Unix is funny, full of smilies... never got that redirect syntax ;-(
OK, I have tried this, but i lose the output of the sprinkled prints in
the code?
I have also tried the double redirect: 1>logfile 2>&1
but with same behaviour. Where are the prints going?
mario
ps: python can also be very smilie...
for all that is in this unoriginal text[:]:
does not pass by uncutely