[SOLVED] When trying to run a bash script in Gnome, nothing happens.......
Linux - DesktopThis forum is for the discussion of all Linux Software used in a desktop context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I click on a bash script, it asks me what to do, I say run in terminal. nothing happens. This happens for any script i try to open. weird
I just tried it (by double-clicking on a script in a nautilus window). A terminal opened, the script ran, then the terminal window immediately closed. Are the script's permissions properly set?
Everything is set to read/write and I am the owner. Still does nothing. This is really strange because i have gnome on a few other computers and have never seen this
Actually if you look closely you can see a terminal flash up. Still nothing actually happens
I've seen this with other apps - the output is apparently dumped to the terminal, but the terminal closes before you can even read it. Would directing the output to a standard GNOME message box help? If so, take a look at zenity
I've seen this with other apps - the output is apparently dumped to the terminal, but the terminal closes before you can even read it. Would directing the output to a standard GNOME message box help? If so, take a look at zenity
Well this script requires user input so it shouldnt be quitting like this. BTW i tried another user account and it did the same thing
Why don't you open a terminal and run the script there. or if you want you can use the 2> to see if it puts in error in a file. something like this run /path/to/script 2> /home/youraccount/errorlog But if you just use the terminal to execute it you should see the out put there.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.