Page 1 of 1

Run command on given CPU temp

Posted: Sun Jul 31, 2022 1:01 pm
by G0FHM
Hi all,

This is probably more of a general Linux question than anything else, but I want to setup a script that uses the dapnet api to send a POCSAG message when the CPU reaches a given temperature.

I've done some googling, and havent really been able to turn much up!

Any advice appreciated!

Thanks,

J

Re: Run command on given CPU temp

Posted: Sun Jul 31, 2022 2:26 pm
by KN2TOD
Temp in Centigrade:

Code: Select all

cat /sys/class/thermal/thermal_zone0/temp