simple logger for cpu temperatures
authorChris Koeritz <fred@gruntose.com>
Sat, 30 Sep 2017 22:24:15 +0000 (18:24 -0400)
committerChris Koeritz <fred@gruntose.com>
Sat, 30 Sep 2017 22:24:15 +0000 (18:24 -0400)
scripts/system/cpu_heat_logger.sh [new file with mode: 0644]

diff --git a/scripts/system/cpu_heat_logger.sh b/scripts/system/cpu_heat_logger.sh
new file mode 100644 (file)
index 0000000..ecf3f6a
--- /dev/null
@@ -0,0 +1,10 @@
+#!/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 ; sensors; sep; done) | tee -a ${TMP}/cpu_temp.log 
+
+