Live data from Hacker News

Seashells – Pipe output from command-line programs to the web in real time

seashells.io

11–20 of 45 posts

Re: Seashells – Pipe output from command-line programs to the web in real time

#13

Piping output from shell into HTTP response bodies is exactly what CGI programming is about. What am I missing that this is considered innovative?

In this case you're piping output from shell into HTTP _requests_. It's the mirrored version of CGI.

Re: Seashells – Pipe output from command-line programs to the web in real time

#14
I 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 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

#15
post #7

Awesome, 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)

tmate is awesome for pair programming

Re: Seashells – Pipe output from command-line programs to the web in real time

#17
post #7

Awesome, 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)

Even nicer because it does not need a third party server is https://github.com/maxmcd/webtty Communication is done using webrtc

Re: Seashells – Pipe output from command-line programs to the web in real time

#18

I 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…

I really appreciate that the default port in both examples is 1337

Re: Seashells – Pipe output from command-line programs to the web in real time

#19

I 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…

hmmmmm.... that some very specific similarities... almost too specific.
Post reply on HN