Provide a simple way to watch and a file even if it is truncated.
This module is designed to follow a file which is being appended to by something like a syslog server. It will reopen the file if the file is truncated and recover from file being removed and recreated.
This module comes with a small command which will follow the file, this is used for demonstration and testing purposes.
follow-file -f /var/log/syslog
As illustrated in the following example program this module can be used as an endless stream. Note in this example I am using through to inject new lines for presentations sake.
Copyright © 2013 Mark Wolfe