Last active
October 5, 2020 15:30
-
-
Save jfeilbach/f4a4b4991b178d154761e9ec7f1b085b to your computer and use it in GitHub Desktop.
get hdd temp and convert from C to F
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
while true ; do | |
/bin/date | |
temp=$(smartctl -a /dev/sdf |grep 194 | awk '{ print $10}') | |
echo "scale=2;9*${temp}/5+32" | bc -l | |
echo "" | |
sleep 60 | |
done | |
exit 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment