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.
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.
Last edited by altic; 05-28-2009 at 07:04 PM.
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
Compilers can produce warnings - make the compiler programmers happy: Use them!
Please don't PM me for help - and no, I don't do help over instant messengers.