indicator-sysmonitor icon indicating copy to clipboard operation
indicator-sysmonitor copied to clipboard

Create your own scripts not working

Open fgl27 opened this issue 6 years ago • 3 comments

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"`

Screenshot from 2019-08-27 11-48-26

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

Screenshot from 2019-08-27 11-45-59

Screenshot from 2019-08-27 11-46-04

fgl27 avatar Aug 27 '19 14:08 fgl27

have you made your script executable?

chmod +x cpu.sh

fossfreedom avatar Aug 27 '19 14:08 fossfreedom

if not how this works? image

Screenshot from 2019-08-27 12-03-53

how this is supposed to work? how do I set the file as a cmd there?

something is wrong I don't know what.

fgl27 avatar Aug 27 '19 15:08 fgl27

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"

fgl27 avatar Aug 27 '19 16:08 fgl27