Seashells – Pipe output from command-line programs to the web in real time
11–20 of 45 posts
Re: Seashells – Pipe output from command-line programs to the web in real time
#12This could be quite useful to demonstrate/teach/explain simple stuff to people but I am not so sure if I would like to expose anything else from my console in this way.
Re: Seashells – Pipe output from command-line programs to the web in real time
#13Piping output from shell into HTTP response bodies is exactly what CGI programming is about. What am I missing that this is considered innovative?
Re: Seashells – Pipe output from command-line programs to the web in real time
#14Try it out, you can pipe your terminal:
exec > >(nc stream.ht 1337) 2>&1
Or just pipe a file: tail -F file.log | nc stream.ht 1337
Pipe htop (delay is required to see share url) (sleep 5; htop) | nc stream.ht 1337
Doesn't require installing anything! Requires netcat which is installed on most *nix systems but you can use a plain tcp socket connection to pipe data too: exec 3/dev/tcp/stream.ht/1337 && head -1 >(tee >(cat >&3))Re: Seashells – Pipe output from command-line programs to the web in real time
#15Awesome, just wish I could install the server locally, would rather link someone at work to an internal URL. Some of the output at work would be too sensitive to trust to any third party. This is the first I see software like this, has anybody seen other similarly useful utilities? I think it's invaluable to be able to share your console output with coworkers in real time so they can also help to troubleshoot.
I've never tried any of the following, but have come across them: * https://github.com/vitorbaptista/shellshare * https://tmate.io/ * https://github.com/yudai/gotty - actually gives you a tty in a browser * https://github.com/dtinth/ttycast (edit: formatting)
Re: Seashells – Pipe output from command-line programs to the web in real time
#16Re: Seashells – Pipe output from command-line programs to the web in real time
#17Awesome, just wish I could install the server locally, would rather link someone at work to an internal URL. Some of the output at work would be too sensitive to trust to any third party. This is the first I see software like this, has anybody seen other similarly useful utilities? I think it's invaluable to be able to share your console output with coworkers in real time so they can also help to troubleshoot.
I've never tried any of the following, but have come across them: * https://github.com/vitorbaptista/shellshare * https://tmate.io/ * https://github.com/yudai/gotty - actually gives you a tty in a browser * https://github.com/dtinth/ttycast (edit: formatting)
Re: Seashells – Pipe output from command-line programs to the web in real time
#18I created something similar years ago and it's open source: https://stream.ht/ Try it out, you can pipe your terminal: exec > >(nc stream.ht 1337) 2>&1 Or just pipe a file: tail -F file.log | nc stream.ht 1337 Pipe htop (delay is required to see share url) (sleep 5; htop) | nc stream.ht 1337 Doesn't require installing anything! Requires netcat which is installed on most *nix systems but you can use a plain tcp socket…
Re: Seashells – Pipe output from command-line programs to the web in real time
#19I created something similar years ago and it's open source: https://stream.ht/ Try it out, you can pipe your terminal: exec > >(nc stream.ht 1337) 2>&1 Or just pipe a file: tail -F file.log | nc stream.ht 1337 Pipe htop (delay is required to see share url) (sleep 5; htop) | nc stream.ht 1337 Doesn't require installing anything! Requires netcat which is installed on most *nix systems but you can use a plain tcp socket…