Re: process /etc/profile Redhat
- From: Keith Keller <kkeller-usenet@xxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 22 May 2007 11:12:24 -0700
On 2007-05-22, zurk1982@xxxxxxxxx <zurk1982@xxxxxxxxx> wrote:
I edited the etc/profile to add some environmental variables for
informix nd changes to the PATH variable. Now I want to process the
file so the changes take effect. I know that the file is read on
reboot but I don't want to have to reboot every time I make a change
to /etc/profile. How do I do that? I am sure that there is a way.
First off, to add to what everyone has already posted, /etc/profile *IS
NOT* read on boot! /etc/profile is read by bash (and perhaps other
shells) on *login*.
You've gotten two suggestions: using the source command, and logging out
and back in. The latter is the most sure way, since if you're using X
it's the only way to effect a change in the X environment.[0] Using
source /etc/profile will only make changes in the shell where you type
source /etc/profile (and subshells), so if you have open terminal
windows, and type it in one window, the other existing windows will not
get the change. As long as you are aware of this, you can use whichever
options makes more sense at the time.
The real problem is that you still haven't really described what you are
doing with your new PATH. Is it you sitting at an X window wanting to
propagate your new PATH? Is it some sort of dummy database user which
is being used to start daemons? Is it some cron job? The more you
describe, the more accurate help you will get.
--keith
[0] I supposed restarting the window manager might also do it, but I
haven't tested that.
--
kkeller-usenet@xxxxxxxxxxxxxxxxxxxxxxxxxx
(try just my userid to email me)
AOLSFAQ=http://www.therockgarden.ca/aolsfaq.txt
see X- headers for PGP signature information
.
- Follow-Ups:
- Re: process /etc/profile Redhat
- From: Tarkin
- Re: process /etc/profile Redhat
- References:
- process /etc/profile Redhat
- From: zurk1982
- Re: process /etc/profile Redhat
- From: Floyd L. Davidson
- Re: process /etc/profile Redhat
- From: zurk1982
- process /etc/profile Redhat
- Prev by Date: Re: introduce me a programming editor running in linux
- Next by Date: Re: process /etc/profile Redhat
- Previous by thread: Re: process /etc/profile Redhat
- Next by thread: Re: process /etc/profile Redhat
- Index(es):
Relevant Pages
|