On Tue, 13 Sep 2016 17:58:40 -0400 <alex....@live.com> wrote: > * What was the outcome of this action? "[[ ! ]] /usr/bin/screenfetch: line > 817: [: 2415.7: integer expression expected"
Please attach output with below shell script ----------------------------------------------------------------------------- #!/bin/sh -xv loc="/sys/devices/system/cpu/cpu0/cpufreq" if [ -f ${loc}/bios_limit ];then cpu_mhz=$(awk '{print $1/1000}' "${loc}/bios_limit") echo ${loc}/bios_limit cat ${loc}/bios_limit elif [ -f $loc/scaling_max_freq ];then cpu_mhz=$(awk '{print $1/1000}' "${loc}/scaling_max_freq") echo ${loc}/scaling_max_freq cat ${loc}/scaling_max_freq else cpu_mhz=$(awk -F':' '/cpu MHz/{ print int($2+.5) }' /proc/cpuinfo | head -n 1) echo /proc/cpuinfo cat /proc/cpuinfo fi echo $cpu_mhz ----------------------------------------------------------------------------- > * What led up to the situation? Running the command screenfetch without > any options > * What exactly did you do (or not do) that was effective (or > ineffective)? This happens whenever the script calls for CPU info. > * What was the outcome of this action? "[[ ! ]] /usr/bin/screenfetch: line > 817: [: 2415.7: integer expression expected" > * What outcome did you expect instead? No error. Please describe information separately like below in next time. It's hard to read... >> * What led up to the situation? > > Running the command screenfetch without any options > .. -- Regards, Hideki Yamane henrich @ debian.or.jp/org http://wiki.debian.org/HidekiYamane