Hack Forums
[Debian] running BASH script [HELP] - Printable Version

+- Hack Forums (https://hackforums.net)
+-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444)
+--- Forum: Computing (https://hackforums.net/forumdisplay.php?fid=88)
+---- Forum: Linux (https://hackforums.net/forumdisplay.php?fid=85)
+---- Thread: [Debian] running BASH script [HELP] (/showthread.php?tid=5848938)



running BASH script [HELP] - Kouta - Jun 13, 2018

so i got a .sh file in my /home/chip/scripts folder that i'm able to execute from an alias i named dump

i'm currently using a device thats called pocked chip, i'm trying to get an icon on the home screen that i could just press and it would execute the .sh file in a terminal. have been trying a couple of different things.

xterm -fullscreen -e dump

xterm -fullscreen -e /home/chip/scripts/file.sh

etc

the only thing that happens is that it launch the xterm but not the file.sh

can't remember the terminal it's using by default but i have to go to the terminal, execute xterm and then try launching the icon. would it be an easier method to do this as well ? guessing adding it to startup. but the main problem is to get the xterm to execute the script 🎉

[Image: 0fd5f6fe9864df728998b2397cf10528.jpg]


RE: running BASH script [HELP] - gov.xn--rhqv96g - Jun 18, 2018

does the script require root or permissions?


RE: running BASH script [HELP] - boffin_mixer - Jun 25, 2018

You can first try

chmod +x scriptnamehere.sh

Let me know if this helps


RE: running BASH script [HELP] - Kouta - Jun 28, 2018

fixed it, need to close the terminal so it freshly opens it with the script for some reason