Web implementation of "tail -f filename"?

Evgenyt picture Evgenyt · Nov 2, 2010 · Viewed 11.1k times · Source

I have a log file and want to create a webpage (possibly Python but not strictly) that will work much like unix "tail -f filename" command works (show new log lines when they are written to file).

So that user will continuously see log right in browser.

How would you implement this?

Answer

gvalkov picture gvalkov · Jun 20, 2013

Tailon is a python webapp that, among other things, provides tail -f like functionality. In addition, wtee (a sister project of tailon) can make all its stdin viewable in the browser - its use is identical to the unix tee command: tail -f filename | wtee