You also need to check /etc/bashrc, ~/.bash_profile, ~/.bashrc to make sure that
path is not overwrote somewhere.

Usually, the last two should be the setting concerns only to yourself, which is
not system wide setting, such as ../ and notorious ./

Good luck!


Liguo (Leo)


Quoting Chandra K Nathani <[EMAIL PROTECTED]>:

> Yes.. u r right.. its getting executed. I am setting
> the PATH variable to some directories like ..say
> /usr/java/jdk/bin. And when I login... the executables
> in that directory are not accessible. I see a $ sign
> attached to the directory name when i see path using
> echo $PATH. This is the output i get.
> 
>
/bin:/usr/X11R6/bin:/usr/local/bin:/opt/bin$:/usr/X11R6/bin:/usr/java/jdk1.3/bin$:/opt/ns-allinone-2.1b7a/bin:/opt/ns-allinone-2.1b7a/tcl8.3.2/unix:/opt/ns-allinone-2.1b7a/tk8.3.2/unix:/sbin:/home/chandu/bin$:/opt/ns-allinone-2.1b7a/bin:/opt/ns-allinone-2.1b7a/tcl8.3.2/unix:/opt/ns-allinone-2.1b7a/tk8.3.2/unix:/sbin$:/opt/ns-allinone-2.1b7a/bin:/opt/ns-allinone-2.1b7a/tcl8.3.2/unix:/opt/ns-allinone-2.1b7a/tk8.3.2/unix:/sbin$:/opt/ns-allinone-2.1b7a/bin:/opt/ns-allinone-2.1b7a/tcl8.3.2/unix:/opt/ns-allinone-2.1b7a/tk8.3.2/unix:/sbinhe
> 
> I see an extra $.. and thats the reason i am unable to
> execute the files there. 
> But when i source the /etc/profile now .. it is
> getting set properly.
> Help please!!
> 
> chandu
> --- rpjday <[EMAIL PROTECTED]> wrote:
> > On Fri, 2 Mar 2001, Chandra K Nathani wrote:
> > 
> > > Does /etc/profile get executed in RH 7.0 at
> > startup?
> > > I think it is not getting executed.. does anyone
> > have
> > > the same problem?
> > > What is the right place to set all system wide
> > > environment variables.. which can be available to
> > all
> > > the users?
> > 
> > that's the right place for env variables for all
> > users, but it
> > doesn't get run at *startup*, it gets run when a
> > user logs in.
> > is that what you really mean?
> > 
> > and, yes, i'm willing to bet it works just fine for
> > all of
> > the rest of us.
> > 
> > rday
> > 
> > -- 
> > Robert P. J. Day
> > Eno River Technologies, Durham NC
> > Unix, Linux and Open Source training
> > 
> > 
> > "This is Microsoft technical support.  How may I
> > misinform you?"
> > 
> > 
> > 
> > _______________________________________________
> > Redhat-list mailing list
> > [EMAIL PROTECTED]
> >
> https://listman.redhat.com/mailman/listinfo/redhat-list
> 
> 
> =====
> Ask and it shall be retrieved: the power of the web!!
> 
> __________________________________________________
> Do You Yahoo!?
> Get email at your own domain with Yahoo! Mail. 
> http://personal.mail.yahoo.com/
> 
> 
> 
> _______________________________________________
> Redhat-list mailing list
> [EMAIL PROTECTED]
> https://listman.redhat.com/mailman/listinfo/redhat-list
> 



8************************************8
*               1,4,9,.....          **
*   Oh my god! It's full of stars!   **
8************************************8*
 **************************************



_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to