Any idea to emulate tail -f

Iain King iainking at gmail.com
Tue May 5 06:24:29 EDT 2009


On May 5, 7:00 am, Joel Juvenal Rivera Rivera <joel... at gmail.com>
wrote:
> 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:
http://209.85.229.132/search?q=cache:ZHrV4E0eTI8J:www.dabeaz.com/generators/Generators.pdf

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

Iain



More information about the Python-list mailing list