nilly / tiny-logtail

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Tiny Logtail

Tiny Logtail is a command-line program, simply printing each line in a log file that has not been read yet.

Installation:

$ cd tiny-logtail
$ make
$ chmod +x tiny-logtail

Usage:

$ tiny-logtail <log_file> <offset_file>

Example:

$ cat > abc.txt
a
b
c
^D
$ tiny-logtail abc.txt
a
b
c
$ echo d >> abc.txt
$ tiny-logtail abc.txt
d

About


Languages

Language:C 91.1%Language:Makefile 8.9%