ulfben icon

check-temperature.sh

ulfben | PRO | 08/10/17 02:12:08 PM UTC | 0 ⭐ | 1116 👁️ | Never ⏰ | []
Bash |

310 B

|

None

|

0 👍

/

0 👎

#!/bin/bash
#check-temperature.sh - prints the value of all thermal sensors
CELCIUS=$'\xc2\xb0'C
for i in /sys/class/thermal/*/temp
do
        fileName="$i"
        value=$(cat "$i")
        value=$(echo "$value/1000.0" | bc) #basic calculator
        printf "%s %.1f%s \\n" "$fileName" "$value" "$CELCIUS"
done

Comments

  • Gyqizv icon
    04/02/26 06:00:47 PM UTC
    text |

    0 B

    |

    0 👍

    /

    0 👎

    Best t33n active cpx link daily updates!
     Copy and paste the link in a new browser tab and then hit enter!
     https://crazyporn.@xxx/members/157354/?asgtbndr=1&play=true&spon=adworld&zone=400
     Remove the @ 
  •  icon
    01/01/70 12:00:00 AM UTC
    Plain Text |

    0 B

    |

    👍

    /

    👎