Any idea to emulate tail -f

Iain King iainking at
Tue May 5 12:24:29 CEST 2009

On May 5, 7:00 am, Joel Juvenal Rivera Rivera <joel... at>
> 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
> traffic.
> Regards    
> joe / Joel Rivera

This is very interesting, about using Generator Expressions:

Relevant stuff about 'tail -f' is on page 39, but I'd read the whole
thing if you can.


More information about the Python-list mailing list