LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 09-18-2003, 09:50 AM   #1
mbhenry
LQ Newbie
 
Registered: Sep 2003
Posts: 17

Rep: Reputation: 0
environmental variables


In RedHat 8.0 how are environmental variables permanently set for all users?
 
Old 09-18-2003, 09:52 AM   #2
CyberMacro
LQ Newbie
 
Registered: Aug 2003
Distribution: Gentoo 1.4
Posts: 27

Rep: Reputation: 15
You can place the command to set them in all users' .bashrc
The code to set one is the following: (in bash)
Code:
export VAR='devar':$VAR
Succes!
 
Old 09-18-2003, 09:58 AM   #3
mbhenry
LQ Newbie
 
Registered: Sep 2003
Posts: 17

Original Poster
Rep: Reputation: 0
Is the :$VAR at the end necessary? Isn't there some file in /etc or somewhere where global variables can be set for all users?
 
Old 09-18-2003, 11:15 AM   #4
Crashed_Again
Senior Member
 
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503

Rep: Reputation: 57
The file is /etc/profile .
 
Old 09-18-2003, 11:27 AM   #5
mbhenry
LQ Newbie
 
Registered: Sep 2003
Posts: 17

Original Poster
Rep: Reputation: 0
Yes, that helped fo rthe DB2INSTANCE variable but it does not seem to be working for the LANG variable. hmmm. Thanks
 
Old 09-18-2003, 11:35 AM   #6
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
but it does not seem to be working for the LANG variable
Check the scripts' sourcing. Prolly /etc/profile.d/lang.sh.
 
Old 09-18-2003, 11:41 AM   #7
mbhenry
LQ Newbie
 
Registered: Sep 2003
Posts: 17

Original Poster
Rep: Reputation: 0
It looks like you are right. I think that in this case I will just set the LANG variable in the .bashrc. Thanks
 
  


Reply



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
Environmental variables... permanent fabianrios Fedora 2 10-20-2005 05:06 PM
Environmental Variables danglingpointer Slackware 13 01-06-2005 12:36 AM
environmental variables msound Programming 0 08-21-2004 07:06 PM
environmental variables? blackzone Linux - General 1 08-06-2004 03:44 AM
how to set environmental variables chakkerz Linux - Newbie 8 07-01-2004 03:06 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 09:39 PM.

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
Open Source Consulting | Domain Registration