-   Linux - Newbie (
-   -   command not found error message (

dcarlis 10-21-2004 07:09 PM

command not found error message

I have an executable program that I'm trying to run, but I keep getting a message stating, "command not found." The permissions on the program are -rwxrwxr-x and it still doesn't work. I have no idea of what else to do to run the program.


CroMagnon 10-21-2004 07:21 PM

What is the exact error message, the name of the program, and the command line you're using?

if you're running 'example' and get:
bash: example: command not found

then the shell doesn't know where the program is because it's not in a directory mentioned in $PATH - use a specific pathname
(e.g if example is in the current dir, try ./example instead)

ToniT 10-21-2004 07:22 PM

What is the name of the program? Is it possibly a script referring to some other program that is missing?

Running program "./foo" with command

strace -e trace=file ./foo
gives you a listing of files it tries to access when it is ran.

darthtux 10-21-2004 07:30 PM

Type in the full path to the program as in
or if you are in the directory it is in put a . and a / in front of it

To find your PATH
echo $PATH

All times are GMT -5. The time now is 05:54 PM.