Tail...
Michael Hudson
mwh at python.net
Mon May 7 07:51:27 EDT 2001
Magnus Heino <magnus.heino at rivermen.se> writes:
> How can I know if a file changes?
>
> Just like the tail command, I want to know when lines are added to a file,
> and be able to read them.
I'm fairly sure the only way you can do this is by trying to read the
file and then sleeping for a couple of seconds. This is what tail
does, anyway.
Cheers,
M.
--
The "of course, while I have no problem with this at all, it's
surely too much for a lesser being" flavor of argument always
rings hollow to me. -- Tim Peters, 29 Apr 1998
More information about the Python-list
mailing list