Commits

Radu Potop committed 1b4a98e

cput

  • Participants
  • Parent commits 669447d

Comments (0)

Files changed (1)

     CPU=`sensors|egrep 'CPU Temperature'|awk '{print $3}'| sed 's/°C//'|sed 's/+//'`
     MOBO=`sensors|egrep 'MB Temperature'|awk '{print $3}'| sed 's/°C//'|sed 's/+//'`
     GPU=`nvidia-settings -q GPUCoreTemp 2> /dev/null | egrep 'Attribute'|awk '{print $4}'|sed 's/\.//'`
-    HDD=`hddtemp /dev/sda | awk '{print $4}' | sed 's/°C//'`
+    HDD=`sudo hddtemp /dev/sda | awk '{print $4}' | sed 's/°C//'`
 
     echo -e "$DATE\t$CPU\t$MOBO\t$GPU\t$HDD"