Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - General
User Name
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.


  Search this Thread
Old 06-26-2003, 02:02 PM   #1
LQ Newbie
Registered: Jun 2003
Location: Toronto
Posts: 27

Rep: Reputation: 15
command line problem

how come when I'm instructed to use the command
example- ./install
it will not work, yet when use
-sh install it will run the file.

I am also unable to get configure to work. Are these two problems linked?

I'm using Redhat 8 on this box.
Old 06-26-2003, 02:12 PM   #2
Registered: Nov 2002
Location: Nashville
Distribution: FreeBSD, Linux, OS-X
Posts: 544

Rep: Reputation: 30
Files will not execute from the command line unless they are "set to execute" and you have permissions to do so.

Do an ll and examine the output, you get something that looks like this:

-rw-r----- 1 cnjohnso informix 16861 Feb 18 2002 smit.log

Please notice the -rw-r-----

Reading from left to right, grouping by three places and ignoring the first dash, we see that for the file "smit.log", the owner has read/write privs, but not execute privs; group has read, but no write or execute privs, and all others have no privs at all.

If a file has execute permissions, then you will see an "x" in the relevant position: -rwxr-x--x

In this case everybody has execute privs.

So, read the man page about chmod, and you can fix your problem.



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

Similar Threads
Thread Thread Starter Forum Replies Last Post
command line problem elfowl MEPIS 9 06-05-2005 12:18 AM
problem using ln with command line lex Linux - Newbie 4 06-03-2004 07:43 AM
Problem executing from command line jleyba213 Linux - General 4 04-09-2004 12:43 PM
Problem getting to command line... ChaosJunkee Mandriva 5 09-14-2003 05:26 PM
problem with command line prompt ??? robeb Linux - General 2 12-07-2002 08:47 PM > Forums > Linux Forums > Linux - General

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