Register a domain and help support LQ
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 10-30-2002, 10:11 PM   #1
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 "#" but the bash returns command not recognized. The application will run, however, if you browse to the 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, 10:53 PM   #2
Registered: Jul 2002
Location: san francisco
Distribution: freebsd
Posts: 102

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

# ./
Old 10-31-2002, 06:15 AM   #3
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
prompt# ./

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

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


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 06:18 PM
Running MPlayer from the GUI, not the command line... xbill311x Linux - Software 14 03-28-2005 09:08 PM
Running Programs from command line sumguy231 Linux - Software 4 12-17-2004 03: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 03:01 PM
Running programs from Command Line SirLostalot Linux - Newbie 1 11-11-2002 09:24 PM

All times are GMT -5. The time now is 03:32 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration