1753960 Members
7580 Online
108811 Solutions
New Discussion юеВ

Not Found

 
Mark Rees
New Member

Not Found

When trying to run an executible (script) we get a message Not Found. We are in the directory where the executible is located. If we type the complete path of where the file is it then executes. What do we need to do to fix this problem? We need to run the script from the directory that it is in.
2 REPLIES 2
Ivan Ferreira
Honored Contributor

Re: Not Found

You have two options:

Run the script using ./ before the script name, if the script is called myscript.sh then run:

./myscript.sh

The ./ indicates that the script is in the current directory.

If you don't want to use ./ then configure your PATH to search for files in the current directory, to do that, run:

PATH=$PATH:.
export PATH

You can add these lines to the /etc/profile or $HOME/.profile to make it permanent.

Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Mark Rees
New Member

Re: Not Found

Had to Change my profile to include the following statements

PATH=$PATH:.
export PATH