Filetail 1.0

Operating systemsOS : Windows / Linux / Mac OS / BSD / Solaris
Program licensingScript Licensing : Other Free / Open Source License - Python License
CreatedCreated : Jun 6, 2007
Size downloadDownloads : 1
Program licensing
Thank you for voting...

This script is a module that allows for reading lines ...

This script is a module that allows for reading_lines from a continuously-growing file (such as a system log).
It handles log files that get rotated/trucated out from under us.
This is useful for writing all sorts of log-monitoring scripts. As given, it only provides a line-by-line interface (perfectly reasonable if all you're doing is reading the output of syslog); one could imagine extending it to provide more of the interface of a file object (read(), lines(), etc. ).
You may also want to tweak the sleep interval calculations if the given algorithm doesn't work for you. The goal is to figure out how long you need to sleep before getting some input; ideally, you want to get to the state where you sleep, wake up, and have exactly one line waiting for you, then sleep again.
If you sleep too long, you delay getting the input to your caller, but if you sleep too short, you waste your time sleeping and checking for input multiple times.

Filetail 1.0 scripting tags: filetail, reader, file reader, lines, interface, system log file, input, reading lines, sleep. What is new in Filetail 1.0 software script? - Unable to find Filetail 1.0 news. What is improvements are expecting? Newly-made Filetail 1.1 will be downloaded from here. You may download directly. Please write the reviews of the Filetail. License limitations are unspecified.