Packages / openSUSE Tumbleweed / Unspecified / perl-File-Tail
[Source: perl-File-Tail]
Package: perl-File-Tail (1.300.0-1.5)
[Project overview: perl-file-tail]
Perl extension for reading from continously updated files
The primary purpose of File::Tail is reading and analysing log files while
they are being written, which is especialy usefull if you are monitoring
the logging process with a tool like Tobias Oetiker's MRTG.
The module tries very hard NOT to "busy-wait" on a file that has little
traffic. Any time it reads new data from the file, it counts the number of
new lines, and divides that number by the time that passed since data were
last written to the file before that. That is considered the average time
before new data will be written. When there is no new data to read,
'File::Tail' sleeps for that number of seconds. Thereafter, the waiting
time is recomputed dynamicaly. Note that 'File::Tail' never sleeps for more
than the number of seconds set by 'maxinterval'.
If the file does not get altered for a while, 'File::Tail' gets suspicious
and startschecking if the file was truncated, or moved and recreated. If
anything like that had happened, 'File::Tail' will quietly reopen the file,
and continue reading. The only way to affect what happens on reopen is by
setting the reset_tail parameter (see below). The effect of this is that
the scripts need not be aware when the logfiles were rotated, they will
just quietly work on.
Note that the sleep and time used are from Time::HiRes, so this module
should do the right thing even if the time to sleep is less than one
second.
The logwatch script (also included) demonstrates several ways of calling
the methods.
Other Packages Related to perl-File-Tail:
Download perl-File-Tail
| Architecture | Package Size | Installed Size | Files |
|---|
| noarch | 29 KiB | 69 KiB | [list of files] |
Package file paths (9)
Paths come from the repository package-file index for the observed builds. They describe archive/package associations, not every file that will exist on a running system after maintainer scripts, alternatives, generated state, diversions, or installation choices.
- /usr/lib/perl5/vendor_perl/5.44.0/File
- /usr/lib/perl5/vendor_perl/5.44.0/File/Tail.pm
- /usr/share/doc/packages/perl-File-Tail
- /usr/share/doc/packages/perl-File-Tail/Changes
- /usr/share/doc/packages/perl-File-Tail/logwatch
- /usr/share/doc/packages/perl-File-Tail/README
- /usr/share/doc/packages/perl-File-Tail/select_demo
- /usr/share/doc/packages/perl-File-Tail/Tail.pm.debug
- /usr/share/man/man3/File::Tail.3pm.gz
Field source: openSUSE Tumbleweed OSS revision tumbleweed-oss-multiarch:4db10cdde3ad82c7e22be35753c9e164b4bdd30f92db4aee17a0d4c94c5f902f