Skip to content

Instantly share code, notes, and snippets.

@JimmyJames404
Last active July 15, 2021 14:29
Show Gist options
  • Save JimmyJames404/eb445af1d71b63a9b08b93f0c9799f0f to your computer and use it in GitHub Desktop.
Save JimmyJames404/eb445af1d71b63a9b08b93f0c9799f0f to your computer and use it in GitHub Desktop.

Install library's

sudo apt install hddtemp lm-sensors

Detect sensors

sudo sensors-detect

Then this is the one line script, that you should execute as root: sudo -i

while [ true ]; do date | tee -a /var/log/hddtemp.log;
hddtemp /dev/sda /dev/sdb /dev/sdc /dev/sdd | tee -a 
/var/log/hddtemp.log; date | tee -a 
/var/log/cputemp.log; sensors | tee -a 
/var/log/cputemp.log; sleep 2; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment