Skip to content

Instantly share code, notes, and snippets.

@apraga
Created December 21, 2012 13:39
Show Gist options
  • Save apraga/4352904 to your computer and use it in GitHub Desktop.
Save apraga/4352904 to your computer and use it in GitHub Desktop.
Returns the cores temperatures.
#!/bin/bash
temp1=`cat /sys/devices/platform/coretemp.0/temp2_input`
temp2=`cat /sys/devices/platform/coretemp.0/temp3_input`
echo `expr $temp1 / 1000`C `expr $temp2 / 1000`C
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment