Skip to content

Instantly share code, notes, and snippets.

@jfeilbach
Last active October 5, 2020 15:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jfeilbach/f4a4b4991b178d154761e9ec7f1b085b to your computer and use it in GitHub Desktop.
Save jfeilbach/f4a4b4991b178d154761e9ec7f1b085b to your computer and use it in GitHub Desktop.
get hdd temp and convert from C to F
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