[Twisted-Python] suggestions needed on a process output event

Moshe Zadka m at moshez.org
Tue Aug 12 23:41:25 MDT 2003


On Wed, 13 Aug 2003, Glyph Lefkowitz <glyph at twistedmatrix.com> wrote:

> If your process is literally 'tail -f', having an extra UNIX process 
> around for it is kinda wasteful.  You can get the same effect by 
> keeping an open file around and reading the remainder of it every 
> second.  (using reactor.callLater)

Remembering such details as clearing EOF bits, and possibly chasing
inodes and stuff. Tail is not as trivial as one would have thought :)
 
-- 
Moshe Zadka -- http://moshez.org/
Buffy: I don't like you hanging out with someone that... short.
Riley: Yeah, a lot of young people nowadays are experimenting with shortness.
Agile Programming Language -- http://www.python.org/




More information about the Twisted-Python mailing list