Skip to content

Instantly share code, notes, and snippets.

@kolaente
Created March 19, 2020 11:17
Show Gist options
  • Save kolaente/9bf8b468da3250b08373566d447af78c to your computer and use it in GitHub Desktop.
Save kolaente/9bf8b468da3250b08373566d447af78c to your computer and use it in GitHub Desktop.
Log cpu temperature every 10s
#!/bin/bash
logfile="sensors.log"
while true; do
date >> $logfile
sensors >> $logfile
echo "--------------" >> $logfile
sleep 10s
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment