bgreenlee/pygtail — pull request #8 by chrysn (2012-06-24 19:06:00+00:00)
Title: debian package updates and --follow feature

hi brad,

pygtail is useful for me in a project, so i decided to spend some time making it even better :-)

the commits in this pull request consists of some updates to the debian packaging (making a --version option necessary, as a man page is built automatically), and a --follow feature (like tail -f).

the follow feature is implemented using sleep; that's not the perfect way of doing it, but good enough for most cases, and it could be extended to work with inotify just as well, if there is demand for it.

please let me know if there are issues with any of the commits, i'd be happy to enhance them.

for future plans, i'm considering going over the file switching parts with respect to atomicity (using fstat instead of stat where appropriate), but that's not urgent to me atm because my project doesn't involve rotation.

regards
chrysn