LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 01-15-2003, 08:58 AM   #1
moeminhtun
Member
 
Registered: Dec 2002
Location: Singapore
Distribution: Fedora Core 6
Posts: 647

Rep: Reputation: 30
environment variables


I used redhat 8.0 and my environment variables are in the .bash_profile in my home directory.

Now I installed the window manager XFCE. But when I log into the XFCE, it didn't detect my environment variables.
What should I do?

Thanks.
 
Old 01-15-2003, 09:03 AM   #2
trickykid
Guru
 
Registered: Jan 2001
Posts: 24,133

Rep: Reputation: 198Reputation: 198
What kind of environment variables are we talking about, like in a terminal or such ?
 
Old 01-15-2003, 09:20 AM   #3
moeminhtun
Member
 
Registered: Dec 2002
Location: Singapore
Distribution: Fedora Core 6
Posts: 647

Original Poster
Rep: Reputation: 30
For example, in the .bash_profile, I give path to the java/bin directory.
Now, the javac command not found. That means it didn't execute the .bash_profile when it log in I think.
I ran the env command and I didn't found my java path and all the environment variables in the .bash_profile.
 
Old 01-15-2003, 09:34 AM   #4
berry
LQ Newbie
 
Registered: Nov 2001
Location: Klazienaveen - Netherlands
Distribution: SuSE 7.0;Mandrake 8.1
Posts: 25

Rep: Reputation: 15
I think you have to use ".profile" for this, because when you use a graphical login, bash doesn't get started.
 
Old 01-15-2003, 09:50 AM   #5
moeminhtun
Member
 
Registered: Dec 2002
Location: Singapore
Distribution: Fedora Core 6
Posts: 647

Original Poster
Rep: Reputation: 30
I got it. I couldn't find the ".profile". But I edit in the ".bashrc" profile. It works.
thanks.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Environment Variables - where do they go!?! iansoundz Linux - General 7 11-17-2005 02:27 AM
environment variables in c++ s3b0 Programming 6 08-27-2004 09:19 AM
when to use environment variables? mark_2811 Programming 2 02-23-2004 06:09 PM
environment variables kakridge Linux - Newbie 1 07-14-2003 06:25 PM
environment variables aethereal Linux - Newbie 7 12-19-2001 09:34 AM


All times are GMT -5. The time now is 07:46 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration