LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 10-13-2005, 03:59 AM   #1
kamesh156
LQ Newbie
 
Registered: Oct 2005
Location: chennai-india
Posts: 13

Rep: Reputation: 0
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.
 
Old 10-13-2005, 04:38 AM   #2
mr_demilord
Member
 
Registered: Sep 2005
Posts: 244

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

Last edited by mr_demilord; 10-13-2005 at 04:42 AM.
 
Old 10-13-2005, 05:56 AM   #3
kamesh156
LQ Newbie
 
Registered: Oct 2005
Location: chennai-india
Posts: 13

Original Poster
Rep: Reputation: 0
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.
 
Old 10-13-2005, 08:26 AM   #4
r0b0
Member
 
Registered: Aug 2004
Location: Europe
Posts: 608

Rep: Reputation: 50
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.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to run a .sh file directly kamesh156 Linux - Software 4 05-21-2009 04:51 PM
can we run the binary file directly kamesh156 Linux - General 1 10-17-2005 07:57 AM
how to run a .sh file directly kamesh156 Linux - Software 7 10-10-2005 05:27 AM
php only runs when file is called directly pnh73 Linux - Networking 2 02-20-2004 11:54 AM
How to run shell script directly without inquiring running mode? Piero Linux - Software 3 09-03-2003 02:28 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 04:39 PM.

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