Created
November 25, 2020 11:55
Revisions
-
hyperized created this gist
Nov 25, 2020 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,16 @@ #!/usr/bin/env bash # Run like: ./temperature.sh & # Requires sensors and smartctl while true; do tput sc tput cup 0 $(($(tput cols)-74)) cpu=$(sensors | grep temp1 | awk '{print $2}') hdd=$(sudo smartctl -d auto -A /dev/sda | grep "Sensor 1" | awk -F': *' '{print $2}') echo "CPU: $cpu | HDD1: $hdd" tput rc sleep 30 done