LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-25-2008, 02:58 AM   #1
Junior_DBA
LQ Newbie
 
Registered: Aug 2008
Posts: 25

Rep: Reputation: 15
Cool variables in bash_profile hid from me


Hi guys! Nice to see you in my thread. I have a confused situation. I have variables in .bash_profile of the user MegaNewbie. After loggin in:

echo $ORACLE_HOME
--nothing--


my bash_profile:

ORACLE_HOME=/oracle/10.2.0; export ORACLE_HOME



what's wrong?

Last edited by Junior_DBA; 08-25-2008 at 04:01 AM.
 
Old 08-25-2008, 03:39 AM   #2
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 671Reputation: 671Reputation: 671Reputation: 671Reputation: 671Reputation: 671
Did you export the variables? Exporting moves the variables from normal variable space to environment space.

Linux/Unix usernames are usually lower case by convention. Check your /etc/login.defs file for the CHARACTER_CLASS definition.
 
Old 08-25-2008, 04:00 AM   #3
Junior_DBA
LQ Newbie
 
Registered: Aug 2008
Posts: 25

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by jschiwal View Post
Did you export the variables? Exporting moves the variables from normal variable space to environment space.

Linux/Unix usernames are usually lower case by convention. Check your /etc/login.defs file for the CHARACTER_CLASS definition.
I exported them in .bush_profile, should I export them somehow else?
 
Old 08-25-2008, 05:53 AM   #4
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 671Reputation: 671Reputation: 671Reputation: 671Reputation: 671Reputation: 671
Yes, you use export in the ~/.bash_profile file.

Are you the user "MegaNewbie"? Could you post your ~/.bash_profile file?
Is bash your default shell?
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Why I can't see environment variables from .bash_profile vori1973 Linux - General 3 10-25-2006 01:22 AM
how to send datas to HID device?why I can only send two bytes data to HID device? wch_zj Linux - Software 1 01-05-2006 07:14 AM
Threads synchronisation problem (mutex variables and contitional variables) zahadumy Programming 6 12-07-2005 12:30 PM
Shel scripting: variables pointing to variables and case Dark_Helmet Programming 5 06-08-2003 11:07 AM


All times are GMT -5. The time now is 12:50 AM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration