At 01:05 PM 2/6/2006, Derek Jennings said something remarkably like (but somehow subtly different from):
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.

OK, I got it working. The problem was that I left out some quote marks in what I was echoing.

Now I am getting everything as one line. How do I insert a "return" to get a new line?

Thank you,


--
Kevin B. O'Brien         TANSTAAFL
[EMAIL PROTECTED]   Linux User #333216
"History will be kind to me, for I intend to write it." -- Churchill

Help fight SPAM. Join CAUCE. http://www.cauce.org/


____________________________________________________
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