mirror of
https://github.com/aquatix/dotfiles.git
synced 2025-12-06 22:55:10 +01:00
20101214: update
This commit is contained in:
@@ -1,13 +1,18 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
TIMESTAMP=`date +%Y%m%d_%H%M`
|
|
||||||
#temperature: 23 C
|
#temperature: 23 C
|
||||||
|
|
||||||
TEMPERATURE=`awk '{print $2}' /proc/acpi/thermal_zone/THRM/temperature`
|
TEMPERATURE=`awk '{print $2}' /proc/acpi/thermal_zone/THRM/temperature`
|
||||||
DATE=`date +%Y-%m`
|
MONTH=`date +%Y-%m`
|
||||||
LOG="/var/log/custom_logs/temperature_$DATE.log"
|
DATE=`date +%Y-%m-%d`
|
||||||
TOTAL=`awk '{a+=$8}END{print a}' /var/log/custom_logs/temperature.log`
|
#TOTAL=`awk '{a+=$8}END{print a}' /var/log/custom_logs/temperature.log`
|
||||||
LINES=`wc -l /var/log/custom_logs/temperature.log | awk '{print $1}'`
|
#LINES=`wc -l /var/log/custom_logs/temperature.log | awk '{print $1}'`
|
||||||
MON=`date +%B`
|
#MON=`date +%B`
|
||||||
m=`wc -l /tmp/temp5_minutes | awk '{print $1}'`
|
#m=`wc -l /tmp/temp5_minutes | awk '{print $1}'`
|
||||||
|
|
||||||
|
LOG="/var/log/custom_logs/cpu/temperature_$MONTH.log"
|
||||||
|
TIMESTAMP=`date +%Y%m%d_%H%M`
|
||||||
|
echo "${TIMESTAMP} $TEMPERATURE" >> ${LOG}
|
||||||
|
|
||||||
|
LOG="/var/log/custom_logs/temp_daily/cpu/temperature_$DATE.log"
|
||||||
|
TIMESTAMP=`date "+%Y%m%d %H%M"`
|
||||||
echo "${TIMESTAMP} $TEMPERATURE" >> ${LOG}
|
echo "${TIMESTAMP} $TEMPERATURE" >> ${LOG}
|
||||||
|
|||||||
Reference in New Issue
Block a user