LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] PATH statements in Mandrake 8.0

[ILUG] PATH statements in Mandrake 8.0

Liam Bedford lbedford at lbedford.org
Thu Mar 21 17:34:06 GMT 2002


On Thu, 21 Mar 2002 17:21:57 +0000
Ronan Waide <waider at waider.ie> blurted in message 15514.5813.769603.106053 at klortho.waider.ie:

> On March 21, declan.moriarty at ntlworld.ie said:
> > 
> > Thanks, Waider, but <grep -r PATH /etc/profile.d/*> shows zilch, and 
> > /etc/profile already has the $PATH bit without me putting it there.
> > 
> > I can't set /usr/local/bin the path in X either. Perhaps I should stick to 
> > what I'm good at - hardware :-<
> 
> Doing what I'm good at myself, which is reading manuals, I find that
> PATH is set by login to a default value, before being modifed
> elsewhere, such as in /etc/profile. Why is it such a big deal that
> /etc/profile already has $PATH? Can't you just insert
> PATH=/usr/local/bin:$PATH into it?
> 
Well, depending on what you want to do, surely doing the following will work with bash:

add to ~/.bash_profile

[ -f ~/.bashrc ] && source ~/.bashrc

add to ~/.bashrc

PATH=/usr/local/bin:${PATH}
export PATH

if what you mean is you have sendmail in /usr/local/bin, and you
want that to be run from a startup script, you're better off changing the script to run /usr/local/bin/sendmail, that way you won't have any nasty surprises if you delete /usr/local/bin/sendmail, and forget to fix the scripts (the script will fail, but it won't run the wrong one).

L.
-- 
 Liam Bedford | It's just the facts of life
--------------| There's no masterplan
 Belle &        Walk me home from school
 Sebastien      I'll let you hold my hand




More information about the ILUG mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


Maintained by the ILUG website team. The aim of Linux.ie is to support and help commercial and private users of Linux in Ireland. You can display ILUG news in your own webpages, read backend information to find out how. Networking services kindly provided by HEAnet, server kindly donated by Dell. Linux is a trademark of Linus Torvalds, used with permission. No penguins were harmed in the production or maintenance of this highly praised website. Looking for the Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!
RSS Version
Powered by Dell