5 ms·
"A no-installation version: `htop | nc seashells.io 1337`" I'm confused ... you are running the command 'htop' locally (and piping it) so how is that not insta
by rsync 9y ago
"A no-installation version: `htop | nc seashells.io 1337`"
I'm confused ... you are running the command 'htop' locally (and piping it) so how is that not installed locally ?
Is htop a local, (n)curses based app that you run in a console or is it something else that I am missing ?
- deleted 9y ago[deleted]
- JosephRedfern 9y agoYou're not installing any additional software onto your machine (like a web server etc)
- sram1337 9y agoPerhaps he means a no installation way to show htop on a web-page? Assuming you have 'htop' installed, you can pipe it's output to seashells.io via `nc` (netcat) and it will give you back a URL where you can see the output.
- _joel 9y agoIndeed, anything can be piped in, i.e. while true;do date;sleep 1; done | nc seashells.io 1337
- moehm 9y agoFYI, you can make it shorter by using sleep in while's condition, no need for while true. It does delay the first output though. while sleep 1; do date; done | ...
- _joel 9y agothanks for the tip, old habits die hard :)
- rounce 9y agoDoesn't the difference lie in whether you want to run the command then sleep, or sleep first and then run the command?
- jjwiseman 9y agoIf you want short while :...
- AdamJacobMuller 9y agothat's clever, i've never thought of it, interesting considering how many while true;do ...;sleep X;done loops i've done
- anishathalye 9y ago> Perhaps he means a no installation way to show htop on a web-page? Yup, exactly!