Merge branch 'master' of feistymeow.org:feisty_meow
[feisty_meow.git] / scripts / system / cpu_heat_logger.sh
diff --git a/scripts/system/cpu_heat_logger.sh b/scripts/system/cpu_heat_logger.sh
new file mode 100644 (file)
index 0000000..41e1593
--- /dev/null
@@ -0,0 +1,17 @@
+#!/bin/bash
+
+# queries the cpu temperature using the sensors system (must be installed) and writes the
+# results to an ongoing log file as well as standard output.
+
+source "$FEISTY_MEOW_SCRIPTS/core/launch_feisty_meow.sh"
+
+(
+  while true; do
+    sleep 1m 
+    date
+    sensors
+    sep
+  done
+) | tee -a ${TMP}/cpu_temp.log 
+
+