Quantcast
Channel: Tiny Core Linux
Viewing all articles
Browse latest Browse all 18601

Re: How to check cpu temperature with script or command

$
0
0
Another attempt:
Code: [Select]
#!/bin/sh
for i in /sys/class/hwmon/hwmon*
do
[ -e "$i"/temp*_label ] && LABEL="$(cat $i/temp*_label)" || LABEL="$(cat $i/name)"
TEMP="$(( $(cat $i/*_input) / 1000 ))"
echo -e "$LABEL: \t$TEMP°C"
done


Viewing all articles
Browse latest Browse all 18601

Trending Articles