Yes, it does. I dont need to be a python programmer to know that. All I need to know is that files on linux are opened by inode number. Which means that the first call to cp will copy the existing log, the second call to echo will truncate the file *without changing its inode number* which means that calibre will continue to write new entries to the truncated file.
|