Results 1 to 7 of 7
Hi guys,
I m a newbie at Linux and was wondering how I can execute a shell script without using the command line. I made a shell script mdla.sh the ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 04-05-2007 #1Just Joined!
- Join Date
- Apr 2007
- Location
- Australia
- Posts
- 4
How to execute a shell script by clicking on it?
Hi guys,
I m a newbie at Linux and was wondering how I can execute a shell script without using the command line. I made a shell script mdla.sh the contents as follows:
java -jar helloworld.jar prop.conf
it runs fine by me typing:
./mdla.sh
but when i click or double click on it nothing happens
and I have full permissions on that file.
cheers
foo
- 04-05-2007 #2
Hi
to execute the file ./mdla.sh from a file manager like konueror or what every your using the file permissions need to be correct
755 will execute the program this mean rwx-rx-rx to change the permissions from a command line as root type chmod 755 mdla.sh
- 04-06-2007 #3Just Joined!
- Join Date
- Apr 2007
- Location
- Australia
- Posts
- 4
I ready cmod the file to have 777 permissions but still no gd
- 04-06-2007 #4What is it supposed to do?
Originally Posted by foo1234 Pete
- 04-07-2007 #5Just Joined!
- Join Date
- Apr 2007
- Location
- Australia
- Posts
- 4
the shell script will run the helloworld.jar file, while passing in the prop.conf as an argument. the the .jar file and .conf file are in the same directory
- 04-07-2007 #6I suspect the helloworld.jar file prints "Hello world" and if this is the case it will probably be working when you double-click your file but there's nowhere to print without a console.
Originally Posted by foo1234 Pete
- 04-10-2007 #7Just Joined!
- Join Date
- Apr 2007
- Location
- Australia
- Posts
- 4
pete: I modified the code to bring up a window and display some text, which still works fine when i execute it in a console, but just does not do anything when it is clicked on the desktop.
I want to have the files of the app (jar file and a conf file) in a directory and have a shell script to execute the app from the desktop, where the user simply needs to click on the shell script on the desktop to execute the app.
Is this possible? or is there any way to get around this to make it happen?
Thanks heaps guys,



