stail streams file changes to a url. "Streaming" is implemented by just not
ending the response (closing the connection). File changes are detected using
tail -f. Streams can be generated by
script's script -q -t 0 or
tmux's tmux pipe-pane.
Usage: stail [options...] <file> ...
Options:
-n Only show new file changes
-p <port> Set port for http server
Use stail like this:
$ ./stail log1.txt log2.txt log3.txt
http://192.168.0.1:8747/log1.txt
http://192.168.0.1:8747/log2.txt
http://192.168.0.1:8747/log3.txt
And then get the output streams by:
$ curl http://192.168.0.1:8747/log1.txt
:
or
$ chromium http://192.168.0.1:8747/log1.txt