Simpler Navigation for Servers and Operating Systems - Please Update Your Bookmarks
Completed: a much simpler Servers and Operating Systems section of the Community. We combined many of the older boards, so you won't have to click through so many levels to get at the information you need. Check the consolidated boards here as many sub-forums are now single boards.
If you have bookmarked forums or discussion boards in Servers and Operating Systems, we suggest you check and update them as needed.
cancel
Showing results for 
Search instead for 
Did you mean: 

Not Found

Mark Rees
Occasional Visitor

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
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
Occasional Visitor

Re: Not Found

Had to Change my profile to include the following statements

PATH=$PATH:.
export PATH