python-inotify-tail_example
python-inotify-tail_example copied to clipboard
Example of using pyinotify to emulate GNU tail -F (follows rotated log file)
Results
2
python-inotify-tail_example issues
Sort by
recently updated
recently updated
newest added
An issue reveals itself when tailing files that are re-created. The following snippet shows what happens. GNU's 'tail -F' shows "1 2 4 5 6" term a: ``` $ touch...
An issue reveals itself if the process writing to the tail'ed logfile writes more than one line in a write(). To reproduce: ``` $ echo 1 >> /tmp/myfile $ echo...