[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: How to log CPU temperature to a file?



Somebody in the thread at some point said:

> I have looked at a ton of apps but I am missing one to periodically
> log CPU temperature to a file? Any ideas?

Have a look down /proc/acpi/thermal_zone, on this machine for example

# cat /proc/acpi/thermal_zone/TZ0/temperature
temperature:             50 C

Then for example...

while [ 1 ] ; do cat /proc/acpi/thermal_zone/TZ0/temperature | tr -s ' '
| cut -d' ' -f2 >> /tmp/temperaturelog ; sleep 10s ; done

-Andy


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]