LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 07-09-2010, 11:09 PM   #1
stratosmacker
LQ Newbie
 
Registered: Jun 2010
Posts: 25

Rep: Reputation: 0
When trying to run a bash script in Gnome, nothing happens.......


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
 
Old 07-10-2010, 06:13 AM   #2
RockDoctor
Senior Member
 
Registered: Nov 2003
Location: Minnesota, US
Distribution: Fedora, Ubuntu, Manjaro
Posts: 1,791

Rep: Reputation: 427Reputation: 427Reputation: 427Reputation: 427Reputation: 427
Quote:
Originally Posted by stratosmacker View Post
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?
 
Old 07-10-2010, 09:38 AM   #3
stratosmacker
LQ Newbie
 
Registered: Jun 2010
Posts: 25

Original Poster
Rep: Reputation: 0
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
 
Old 07-10-2010, 09:59 AM   #4
stratosmacker
LQ Newbie
 
Registered: Jun 2010
Posts: 25

Original Poster
Rep: Reputation: 0
Actually if you look closely you can see a terminal flash up. Still nothing actually happens
 
Old 07-10-2010, 12:40 PM   #5
RockDoctor
Senior Member
 
Registered: Nov 2003
Location: Minnesota, US
Distribution: Fedora, Ubuntu, Manjaro
Posts: 1,791

Rep: Reputation: 427Reputation: 427Reputation: 427Reputation: 427Reputation: 427
Quote:
Originally Posted by stratosmacker View Post
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
 
Old 07-10-2010, 03:47 PM   #6
stratosmacker
LQ Newbie
 
Registered: Jun 2010
Posts: 25

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by RockDoctor View Post
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
 
Old 07-10-2010, 10:18 PM   #7
stratosmacker
LQ Newbie
 
Registered: Jun 2010
Posts: 25

Original Poster
Rep: Reputation: 0
Also when the run (not only run in terminal) option is selected for a test script I made, it does not work.
 
Old 07-10-2010, 10:41 PM   #8
jmc1987
Member
 
Registered: Sep 2009
Location: Oklahoma
Distribution: Debian, CentOS, windows 7/10
Posts: 893

Rep: Reputation: 119Reputation: 119
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.
 
Old 07-10-2010, 11:59 PM   #9
stratosmacker
LQ Newbie
 
Registered: Jun 2010
Posts: 25

Original Poster
Rep: Reputation: 0
o man, rookie mistake. i had a slash after bash in both of the scripts. thread closed
 
Old 07-11-2010, 06:44 AM   #10
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723
Quote:
Originally Posted by stratosmacker View Post
thread closed
That's not how we do things here.

YOU have to mark the thread as Solved (in Thread Tools).
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
My BASH script work perfect when i run it manualy, but not when it run in the crontab roqarg Linux - Newbie 30 05-06-2010 01:37 PM
bash script to run commands dormant Programming 1 08-25-2009 01:35 PM
Bash Script Help - Trying to create a variable inside script when run. webaccounts Linux - Newbie 1 06-09-2008 02:40 PM
Bash Script -- run two processes at once? 1veedo Programming 2 12-22-2007 09:40 PM
how to run one bash script from within another? babag Programming 9 04-28-2005 12:12 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 04:23 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration