Handling signals and performance issues.
c.evans at clear.net.nz
Sun Dec 10 07:26:05 CET 2000
Roy Smith <roy at panix.com> writes:
> You might want to look at the source to the unix "tail" command (you
> should be able to find it on any of the many GNU/Linux distribution
> sites) and see how it implements the "-f" option, which is essentially
> what you are trying to emulate.
One trick I've seen is do a popen('tail -f filename', 'r'). Because
this gives you one end of a pipe, you can use select() to tell when
more data is available, unlike with a file.
Carey Evans http://home.clear.net.nz/pages/c.evans/
More information about the Python-list