Commits

Radu Potop committed 69d32ed

cput

  • Participants
  • Parent commits ecc4680

Comments (0)

Files changed (1)

     DATE=`date '+%Y-%m-%d %H:%M:%S'`
     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 | egrep 'Attribute'|awk '{print $4}'|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//'`
 
     echo -e "$DATE\t$CPU\t$MOBO\t$GPU\t$HDD"