Quote:
Originally Posted by kovidgoyal
Do I really need to SPELL it out?
cp log.txt archived-log.txt
echo > log.txt
|
Well, you may spell it or cast it or even sing it - but it doesn't work.
Sorry, I'm not a Python programmer, but is it so difficult to write to rotated log file? log() system call works good enough...