Imitating "tail -f"
Matt Nordhoff
mnordhoff at mattnordhoff.com
Sun Nov 22 01:32:27 EST 2009
Jason Sewall wrote:
> FWIW, GNU tail on Linux uses inotify for tail -f:
>
> http://git.savannah.gnu.org/cgit/coreutils.git/tree/src/tail.c
>
> The wikipedia page for inotify lists several python bindings:
>
> http://en.wikipedia.org/wiki/Inotify
>
> Not much help for non-Linux users, but there it is. Too bad, because
> inotify is pretty cool.
>
> Jason
Some other operating systems have similar facilities, e.g. FSEvents on OS X.
--
Matt Nordhoff
More information about the Python-list
mailing list