Any idea to emulate tail -f
debatem1 at gmail.com
Tue May 5 08:50:52 CEST 2009
On May 5, 2:00 am, Joel Juvenal Rivera Rivera <joel... at gmail.com>
> I want to make something very similar to the command tail -f (follow a
> file), i have been trying with some while True and some microsleeps
> (about .1 s); did someone has already done something like this?
> And about the file is the apache acceslog of a site with a lot of
> joe / Joel Rivera
You might want to try http://pyinotify.sourceforge.net/. Works well on
Linux systems. Otherwise, I'd watch the mtime on the file and fork to
handle the change.
More information about the Python-list