Hacker News new | ask | show | jobs
by clvv 5187 days ago
Here is a quick-and-hackish way to stream / broadcast your terminal (http://www.commandlinefu.com/commands/view/6788/):

    script -qf | tee >(nc -l -p 5000) >(nc -l -p 5001) >(nc -l -p 5002)
The client can then run `nc your_ip port` to watch your terminal live.

Also, I once wrote a node.js script that broadcasts recorded terminal sessions. To see a demo:

    nc wei23.net 5000
Code is on Github: https://github.com/clvv/scriptbroadcast
2 comments

Netcat continually astounds me. The amount of functionality that that little tool provides is just short of incredible.
It's actually not so much netcat, but the Unix system that has such flexibility.
Definitely hackish, but still useful. Thanks for sharing!