On Monday 06 Feb 2006 17:44, Kevin B. O'Brien wrote:
snip
> >Linux will find executable files without an explicit path only if the path
> > is defined in your $PATH environment variable. The standard $PATH
> > variable does not include your /home.
> >
snip
> So if I open a terminal window, cd to the directory that the script
> is located in, and try to run it from there, it still won't find it?
>
> Thank you,

Correct. If the directory is not in your $PATH an executable will only run if 
you give either the explicit path or a relative path.

It is not a good idea to use a relative path inside another application such 
as evolution since it is difficult to know what directory evolution will be 
working in when it encounters the command to run the script.


A relative path works like this.

To run an executable in the same directory as your terminal window use

./myscript

To run a script in a directory one directory 'up' use

../myscript

To run a script two directories up use
../../myscript

Read more here 
http://www.upscale.utoronto.ca/GeneralInterest/Harrison/LearnLinux/Module2.html

BTW: To see your $PATH enter
echo $PATH  
 in a terminal. 

derek
-- 
www.jennings.homelinux.net
____________________________________________________
Want to buy your Pack or Services from Mandriva? 
Go to http://store.mandriva.com
Join the Club : http://www.mandrivaclub.com
____________________________________________________

Reply via email to