Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
follow works like `tail -f`, but it's stand-alone (without any other features). It uses inotify.
C

This branch is 7 commits ahead, 9 commits behind dermesser:master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
.gitignore
README.md
follow.c

README.md

README for follow

USE

follow is a quite simple program using inotify for following a file, e.g. a logfile in which a server writes. It has the same effect like tail -f on a file, but it echoes the whole file before starting to follow, and it's very small.

It was originally written as "glue" between the file-oriented IRC client ii and a perl script so you could follow the chat in the perl script by opening a pipe like this:

open(CHAT,"follow out|");

By reading and writing raw bytes, it may be used with any encoding.

If you use follow on your console, simply stop it via CTRL-C (^C), like tail -f

COMPILING

$ make follow

INSTALLING

# install follow /usr/local/bin
Something went wrong with that request. Please try again.