Temperature scripts ....
Posted: January 6th, 2012, 2:37 pm
I think I have done something bad but I do not know what....
My sensors output is fine (see below) but I am getting emails every time the cron event runs complaining.
From the CPU script I get
/home/user/scripts/CPUTempShutdown.sh: line 49: [: -ge: unary operator expected
/home/user/scripts/CPUTempShutdown.sh: line 59: [: -ge: unary operator expected
/home/user/scripts/CPUTempShutdown.sh: line 49: [: -ge: unary operator expected
/home/user/scripts/CPUTempShutdown.sh: line 59: [: -ge: unary operator expected
from the comments at the top of the script it seems that what is needed is the word 'Core' or edit that to fit the output available from sensors. However, the output I see seems to relate to the motherboard ... Does anyone know how do I get the CPU sensor output?
My sensors output is fine (see below) but I am getting emails every time the cron event runs complaining.
From the CPU script I get
/home/user/scripts/CPUTempShutdown.sh: line 49: [: -ge: unary operator expected
/home/user/scripts/CPUTempShutdown.sh: line 59: [: -ge: unary operator expected
/home/user/scripts/CPUTempShutdown.sh: line 49: [: -ge: unary operator expected
/home/user/scripts/CPUTempShutdown.sh: line 59: [: -ge: unary operator expected
from the comments at the top of the script it seems that what is needed is the word 'Core' or edit that to fit the output available from sensors. However, the output I see seems to relate to the motherboard ... Does anyone know how do I get the CPU sensor output?
Code: Select all
acpitz-virtual-0
Adapter: Virtual device
temp1: +22.0°C (crit = +127.0°C)
it8718-isa-0e80
Adapter: ISA adapter
in0: +0.94 V (min = +0.00 V, max = +4.08 V)
in1: +1.14 V (min = +0.00 V, max = +4.08 V)
in2: +3.31 V (min = +0.00 V, max = +4.08 V)
+5V: +3.01 V (min = +0.00 V, max = +4.08 V)
in4: +2.99 V (min = +0.00 V, max = +4.08 V)
in5: +1.60 V (min = +0.00 V, max = +4.08 V)
in6: +1.20 V (min = +0.00 V, max = +4.08 V)
5VSB: +2.90 V (min = +0.00 V, max = +4.08 V)
Vbat: +3.18 V
fan1: 3229 RPM (min = 0 RPM)
fan2: 0 RPM (min = 0 RPM)
fan3: 0 RPM (min = 0 RPM)
temp1: +22.0°C (low = +127.0°C, high = +127.0°C) sensor = thermal diode
temp2: +31.0°C (low = +127.0°C, high = +127.0°C) sensor = thermal diode
temp3: +27.0°C (low = +127.0°C, high = +127.0°C) sensor = thermal diode
nouveau-pci-0100
Adapter: PCI adapter
temp1: +46.0°C (high = +100.0°C, crit = +110.0°C)
k10temp-pci-00c3
Adapter: PCI adapter
temp1: +20.4°C (high = +70.0°C)