vak: (Default)
[personal profile] vak
Набрёл на полезную утилитку: ttyplot. Берёт данные со стандартного ввода и рисует их на обычном текстовом терминале.



На Линуксе ставится командой:
snap install ttyplot
На Маке:
brew install ttyplot
К примеру, вот так можно отрисовать температуру процессора:
{ while true; do awk '{ printf("%.1f\n", $1/1000) }' /sys/class/thermal/thermal_zone0/temp; sleep 1; done } | ttyplot -t "cpu temp" -u C
This account has disabled anonymous posting.
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting

If you are unable to use this captcha for any reason, please contact us by email at support@dreamwidth.org