Last active
December 19, 2023 17:24
-
-
Save arthurbenemann/16732b60c95afa0e5f480b25269a4731 to your computer and use it in GitHub Desktop.
linux sensor plotting
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rm /tmp/sensor | |
while true; do | |
echo -ne "\r" | |
echo $1 | |
cat $1 >> /tmp/sensor | |
tail -n 60 /tmp/sensor | gnuplot -p -e "set terminal dumb size 120, 30; set autoscale; plot '-' with lines notitle" | |
sleep 1 | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment