LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-11-2005, 01:10 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?
 
Old 10-11-2005, 02:13 AM   #2
IBall
Senior Member
 
Registered: Nov 2003
Location: Perth, Western Australia
Distribution: Ubuntu, Debian, Various using VMWare
Posts: 2,088

Rep: Reputation: 62
You can invoke it from a terminal.

Open up a terminal window, Change to the directory and enter:
Code:
./nameOfYourScript
I hope this helps
--Ian
 
Old 10-11-2005, 04:45 AM   #3
kamesh156
LQ Newbie
 
Registered: Oct 2005
Location: chennai-india
Posts: 13

Original Poster
Rep: Reputation: 0
thanks Ian but i need to opn the file by double click .
 
Old 12-14-2005, 01:44 PM   #4
crazygyhrous
LQ Newbie
 
Registered: Dec 2005
Posts: 13

Rep: Reputation: 0
just right click the icon and check "Run in terminal" under Properties. I'm assuming you have an icon or not? This will run your script by double clicking on it.
 
Old 05-21-2009, 04:51 PM   #5
Antilope
LQ Newbie
 
Registered: May 2009
Posts: 1

Rep: Reputation: 0
Quote:
Originally Posted by kamesh156 View Post
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?
if you are using Nautilus:

open any window, go to Edit->Preferences->Behavior and check the "Run executable text files when they are opened"

this will chenge the behavior of every executable text file but its the best i was able to do :S
 
  


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
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 - General 3 10-13-2005 08:26 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 - Software

All times are GMT -5. The time now is 07:33 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