pastebin - collaborative debugging tool
kpaste.net RSS


log_thermal
Posted by Anonymous on Thu 17th Sep 2015 13:39
raw | new post

  1. #!/usr/bin/env bash
  2.  
  3. # Timestamps and logs the thermal condition to ~/logs_custom
  4. # Best is to run this script like `watch -n5 -d 'bash log_thermal.sh'`
  5.  
  6. if [ ! -d ~/logs_custom ]
  7.   then mkdir ~/logs_custom
  8. fi
  9.  
  10. (echo -n "$(date +%F_%T%z) "; cat /sys/class/thermal/thermal_zone0/temp) | tee --append ~/logs_custom/thermal_"$(date +%F)".log

Submit a correction or amendment below (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.

Syntax highlighting:

To highlight particular lines, prefix each line with {%HIGHLIGHT}




All content is user-submitted.
The administrators of this site (kpaste.net) are not responsible for their content.
Abuse reports should be emailed to us at