5 ms·
Perhaps 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` (netca
by sram1337 9y ago
Perhaps 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!