Ever wanted to pipe “tail -f” to a web-page? Here’s a one liner… On the server$ (echo -e ‘HTTP/1.1 200 OK\nAccess-Control-Allow-Origin: *\nContent-type: text/event-stream\n’ && tail -f /path/to/some/file | sed -u -e ‘s/^/data: /;s/$/\n/’) | nc -l 1234That should all be on a single line. Note: This is for the GNU version of Sed, typically found in Linux distros. If using the BSD version of Sed (e.g