I'm just playing around and want to write a c++ program that monitors my CPU temperature, (i know there is no need to do it, i know i can get that info without writing a program). I'm willing to design the whole thing as a background process in linux and be able to communicate with it via command line.
let's say my program name is: cputemp
i want to be able to run the command cputemp -temp and get the temp values.
I've never done anything like this before and hope you guys can help me out