How to log CPU temperature to a file?

Arch Willingham arch at tuparks.com
Wed Jul 25 22:09:57 UTC 2007


Thanks guys!

-----Original Message-----
From: fedora-list-bounces at redhat.com
[mailto:fedora-list-bounces at redhat.com]On Behalf Of Andy Green
Sent: Wednesday, July 25, 2007 2:25 PM
To: For users of Fedora
Subject: 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

-- 
fedora-list mailing list
fedora-list at redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list




More information about the fedora-list mailing list