LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   how to run a .sh file directly (https://www.linuxquestions.org/questions/linux-general-1/how-to-run-a-sh-file-directly-372549/)

kamesh156 10-13-2005 03:59 AM

how to run a .sh file directly
 
i wrote a shell script to invoke my application and i gave the executable permission to that .sh file.my need is while double click that .sh file, my app should run. yes its working, but the problem is everytime while double click the .sh file, a msg box is appearing with the following options Run, Run in terminal, Display and Cancel. how to avoid the msg box or any other ways to invoke my application? i dont want to go to the terminal. i hav to run the script by double click the file in gui.

mr_demilord 10-13-2005 04:38 AM

Apply the excutable bit on the file. <chmod +x file.sh>
Then you can double click to excute the file.

kamesh156 10-13-2005 05:56 AM

abt.sh file execution
 
Quote:

Originally posted by mr_demilord
Apply the excutable bit on the file. <chmod +x file.sh>
Then you can double click to excute the file.

ha i gave he executable permission to that .sh file.now it gives the msg box while double click the file with some options. my question is how to avoid the msg box.

r0b0 10-13-2005 08:26 AM

I think this is a security feature of your file manager (nautilus/konqueror/etc.).
Try to ask how to disable it but please provide more information about the manager/dektop environment you are using.


All times are GMT -5. The time now is 02:51 PM.