LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices



Reply
 
Search this Thread
Old 10-30-2002, 11:11 PM   #1
zulu1_hl
LQ Newbie
 
Registered: Aug 2002
Posts: 7

Rep: Reputation: 0
Question Running .sh files from the command line


I have tried to run an application (Forte) from the command line "# runide.sh" but the bash returns command not recognized. The application will run, however, if you browse to the runide.sh from the browser.

I have given the file chmod 777 just to make sure all would have execute rights.

I am not sure what is preventing it from being executed from the command line.

Thanks for your help
 
Old 10-30-2002, 11:53 PM   #2
leed_25
Member
 
Registered: Jul 2002
Location: san francisco
Distribution: freebsd
Posts: 102

Rep: Reputation: 17
does your $PATH contain the current directory '.'?

try
Quote:
# ./runide.sh
 
Old 10-31-2002, 07:15 AM   #3
daxy
Member
 
Registered: Oct 2002
Location: the Netherlands
Distribution: Debian - Sid
Posts: 33

Rep: Reputation: 15
First of all, try to avoid chmod 777 !!!
Make it at least 755, this will work just as fine.

Execute the command by entering either:
prompt# sh runide.sh
or
prompt# ./runide.sh

You _have_ to use ./ because this file is not within your PATH.
 
Old 11-01-2002, 01:05 PM   #4
zulu1_hl
LQ Newbie
 
Registered: Aug 2002
Posts: 7

Original Poster
Rep: Reputation: 0
Thanks all. Both tricks did the job :-)
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Reading a file and running a command for each line. mijohnst Linux - General 11 08-22-2005 07:18 PM
Running MPlayer from the GUI, not the command line... xbill311x Linux - Software 14 03-28-2005 10:08 PM
Running Programs from command line sumguy231 Linux - Software 4 12-17-2004 04:10 PM
How can I see what process are running and how to I kill them? (command line). brynjarh Linux - Newbie 4 07-07-2004 04:01 PM
Running programs from Command Line SirLostalot Linux - Newbie 1 11-11-2002 10:24 PM


All times are GMT -5. The time now is 08:12 AM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration