Running Bash Shell Script from Gnome Desktop

Jeff Vian jvian10 at charter.net
Tue Aug 8 00:56:08 UTC 2006


On Mon, 2006-08-07 at 00:23 -0700, Keith wrote:
> Yes I do have that line on the top of the script.
> 
> Here is the script 
> 
> #!/bin/bash
> # Only use this script to run bc246t.tcl from a Gnome program launcher
> if 
> #/bc246t is located in your HOME directory.
> # example /home/username/bc246t
> cd bc246t
> exec ./bc246t.tcl 
> # end, save in ~/bin/ , chmod +x , have your desktop shortcut launch
> # this script instead of the application itself.
> 
So did you do what the last two lines tell you to do?
Put the script in /bin and follow the directions above to see if it
works.
The line with the cd will need to be changed to suit the actual location
of the bc246t directory.



> On Mon, 2006-08-07 at 14:59 +0800, Msquared wrote:
> > On Sun, Aug 06, 2006 at 09:49:48PM -0700, Keith wrote:
> > 
> > > I have a bash shell script on my Desktop and every time I run it the
> > > Gnome desktop places a prompt box on what I want to do: display, run in
> > > terminal, cancel or Run. How do I disable this function or get the
> > > script to run without the prompt? 
> > 
> > Do you have a line like this at the top of the script:
> > 
> >   #!/bin/bash
> > 
> > Regards, Msquared...
> > 
> -- 
> Best Regards, Keith 
> http://home.comcast.net/~kilowattradio/
> BC246T TCL/TK Programming and Control Tool
> http://home.comcast.net/~kilowattradio/ftp/
> 




More information about the fedora-list mailing list