hi,
can anyone tell me how to check temperature in linux with C / C++ programming? just a little script will do. i need it for my new program. i seek the CPU temperature. Thanks a lot.
Printable View
hi,
can anyone tell me how to check temperature in linux with C / C++ programming? just a little script will do. i need it for my new program. i seek the CPU temperature. Thanks a lot.
What temperature is it that you want to check? The met-office does a web-site that will give you the outside temperature. If you want the room temperature, you probably need a sensor of some sort.
If you want to know the CPU or Case temperature you need to interface with the sensors in the system - lm-sensors is a package that will let you do that. Not quite sure how you actually interface to that.
But from your question, it's not clear even which temperature you are looking to see.
--
Mats