indicator-sysmonitor
indicator-sysmonitor copied to clipboard
Create your own scripts not working
How to use this featuring?
my script :
#!/bin/bash
var=$(cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq | cut -c1-4);
echo $var "Mhz"`

But when I try to use in the app the result is


have you made your script executable?
chmod +x cpu.sh
if not how this works?


how this is supposed to work? how do I set the file as a cmd there?
something is wrong I don't know what.
Also this simple line as a cmd
cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq | cut -c1-4
Way it does not work? just because of the |
because the simple version below works
cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq
if it has a | for extra commands should not matter, is a single cmd line and outputs in a single line just like a "echo" must work but causes the same problem "sensor not supported"