Tiny Core Base > CorePlus
How to check cpu temperature with script or command
malikawan:
Any way to check cpu temperature with script or command. I am using lm-sensor but it don't detect any sensor. Is there any setting after installing lm-sensor utility
patrikg:
How about this.
Not using lmsensor just regular linux commands.
Temp in Celsius with 2 decimals.
--- Code: (bash) ---echo $'scale=2\n'$(cat /sys/class/thermal/thermal_zone0/temp)/1000 | bc
--- End code ---
curaga:
Did you install the hwmon extension? Without that, you won't get cpu temp.
malikawan:
its not working
cat: /sys/class/thermal/thermal_zone0/temp: No such file or directory
sh: cat:: not found
malikawan:
Yes curaga i have install the hwmon extension
Navigation
[0] Message Index
[#] Next page
Go to full version