Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create your own scripts not working #92

Open
fgl27 opened this issue Aug 27, 2019 · 3 comments
Open

Create your own scripts not working #92

fgl27 opened this issue Aug 27, 2019 · 3 comments

Comments

@fgl27
Copy link

fgl27 commented Aug 27, 2019

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

@fossfreedom
Copy link
Owner

have you made your script executable?

chmod +x cpu.sh

@fgl27
Copy link
Author

fgl27 commented Aug 27, 2019

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
Copy link
Author

fgl27 commented Aug 27, 2019

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"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants