4 ms·
Anyway we could use this with realtime rendering? For eg: I pipe data from top command to this script to see graphs/charts change it dynamically?
by the_arun 5y ago
Anyway we could use this with realtime rendering? For eg: I pipe data from top command to this script to see graphs/charts change it dynamically?
- jwmhjwmh 5y agoYou would probably need a wrapper script to do this. The script could periodically clear the screen and call "barchart" with the new input data, re-rendering the chart from scratch. "barchart" is a very simple shell script that doesn't do much on its own.
- johndough 5y agoSlightly relevant: The program "htop" displays CPU usage with bars on the command line. https://htop.dev/ https://htop.dev/
- johnchristopher 5y agowatch -n1 ./barchart -w 80 data