Skip to content

Instantly share code, notes, and snippets.

@azbesthu
Created September 26, 2012 19:00
Show Gist options
  • Save azbesthu/3789871 to your computer and use it in GitHub Desktop.
Save azbesthu/3789871 to your computer and use it in GitHub Desktop.
#!/bin/bash
while :
do
echo -n " Temperature: "
TEMP=`cat /sys/class/thermal/thermal_zone0/temp`
TEMP=$[ $TEMP / 1000 ]
FREQ=`cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq`
FREQ=$[ $FREQ / 1000 ]
echo "$TEMP C, CPU Scaling: $FREQ MHz"
sleep 1
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment