-
Notifications
You must be signed in to change notification settings - Fork 16
/
DETAILS
31 lines (26 loc) · 1.29 KB
/
DETAILS
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
MODULE=File-Tail
VERSION=0.99.3
SOURCE=$MODULE-$VERSION.tar.gz
SOURCE2=ptail.pl
SOURCE_URL[0]=http://search.cpan.org/CPAN/authors/id/M/MG/MGRABNAR/
SOURCE2_URL[0]=http://www.sial.org/code/perl/scripts/
WEB_SITE=http://search.cpan.org/search?dist=File-Tail
ENTERED=20021228
UPDATED=20051105
SHORT="Read files which are continously appended to"
cat << EOF
The File::Tail module is designed for reading files which are continously
appended to (the name comes from the tail -f directive). Usualy such files are
logfiles of some description.
The module tries hard not to busy wait on the file, dynamicaly calcultaing
how long it should wait before it pays to try reading the file again.
The module should handle normal log truncations ("close; move; open"
or "cat /dev/null >file") transparently, without losing any input.
Currently this package requires Time::HiRes, because it often needs to sleep
for less than one second. (I don't beleive one should busy wait on a file
just because it gets more than one line/second).
The file logwatch is a simple example of use. Try it with
./logwatch /var/log/syslog 1 if you want to see how File::Tail works.
This module also comes with ptail.pl, an example and generic File::Tail
perl script.
EOF