Hey there, please help me how to solve this problem. I need to find my CPU temperature in C code on Linux for my new program. Can anyone tell me???
Jump to Post
^ from that page:
[QUOTE=jephthah;850293]on linux you would just grep sysctl for a block of info
[icode]$ sysctl -a |grep therm
or query for the specific variable
[icode]$ sysctl hw.acpi.thermal.tz0.temperature