Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Red Hat This forum is for the discussion of Red Hat Linux.


  Search this Thread
Old 07-07-2004, 03:05 AM   #1
LQ Newbie
Registered: Jul 2004
Location: Ludhiana, India
Distribution: RedHat
Posts: 1

Rep: Reputation: 0
running shell script: command not found


I am trying to run a shell script from a third party which is very reliable and they say to run script, but when I try to run this:

prompt> ./
prompt> ./install
prompt> .install

It says command no found.

Pls help.
Old 07-07-2004, 06:50 AM   #2
Senior Member
Registered: Feb 2003
Location: N'rn WI -- USA
Distribution: Kubuntu 8.04, ClarkConnect 4
Posts: 1,142

Rep: Reputation: 47
The script might not have execute permission... "chmod u+x". Then, "./" should, as long as you are in the directory where the script is.
Old 07-07-2004, 09:04 PM   #3
Registered: Oct 2003
Location: Oak Harbor, WA
Distribution: Debian Unstable
Posts: 94

Rep: Reputation: 16
try this

well if you are in the right directory and "./" does not work, you may have to type "sh". if that doesn't work then try "sh ./", do ya get the concept!?
Old 04-14-2010, 01:21 PM   #4
LQ Newbie
Registered: Feb 2009
Posts: 8

Rep: Reputation: 7
Cool You ROCK!

Originally Posted by shorty_boy View Post
well if you are in the right directory and "./" does not work, you may have to type "sh". if that doesn't work then try "sh ./", do ya get the concept!?
Thank you!


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
Running a shell script remotely via 'ssh <hostname> <command>' davee Linux - General 4 10-09-2005 01:38 AM
Running shell script within a C or C++ program Quantum0726 Programming 2 06-15-2005 09:14 PM
Command not found error - difference in shell? aw_wolfe Linux - Newbie 6 04-20-2005 04:49 PM
command not found (My shell script) Swift&Smart Linux - Software 3 05-15-2004 11:14 PM
c/c++ running a shell script? thermalpants Programming 3 05-12-2002 11:41 AM

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

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