Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
04-28-2014, 04:42 AM
|
#1
|
LQ Newbie
Registered: Apr 2014
Posts: 3
Rep:
|
How to define system wide environmental variables
Hi,
Our company uses a program called OBIEE that uses several configuration files.
Environmental variables such as PATH can be used in the configuration files.
Now I want to define an environmental variable LOGOFFURL - this is a new variable and (thus) isn't available to the program OBIEE.
The question is: how and where to define it? Please bear in mind it should not be available to a single user, it is should be an user independent system wide variable.
BTW, our os is Red Hat 5.6.
TIA!
Last edited by Erik0067; 04-28-2014 at 04:44 AM.
|
|
|
04-28-2014, 04:53 AM
|
#2
|
Senior Member
Registered: Jun 2008
Location: Eelam
Distribution: Redhat, Solaris, Suse
Posts: 1,278
Rep:
|
If you add it in /etc/profile, it will apply to all users in the system
say like,
JAVA_HOME=/usr/java/jdk1.6.0_31
export JAVA_HOME
|
|
|
04-28-2014, 06:31 AM
|
#3
|
LQ Newbie
Registered: Apr 2014
Posts: 3
Original Poster
Rep:
|
Quote:
Originally Posted by kirukan
If you add it in /etc/profile, it will apply to all users in the system
say like,
JAVA_HOME=/usr/java/jdk1.6.0_31
export JAVA_HOME
|
Thank you, we'll give this a try.
|
|
|
04-28-2014, 09:45 AM
|
#4
|
LQ Newbie
Registered: Apr 2014
Posts: 3
Original Poster
Rep:
|
Quote:
Originally Posted by Erik0067
Thank you, we'll give this a try.
|
I've added the two environmental variables to the file /etc/profile, but unfortunately it doesn't work.
A colleague of mine suggested this is because it's only available to users logged on. Since we are dealing here with an application, it should also be available to applicationa that don't log on.
So anymore suggestions?
Thanks in advance!
|
|
|
04-28-2014, 10:13 AM
|
#5
|
Senior Member
Registered: Jun 2008
Location: Eelam
Distribution: Redhat, Solaris, Suse
Posts: 1,278
Rep:
|
An application run by a normal user or super user which is root. if so this /etc/profile will apply to all.
|
|
|
All times are GMT -5. The time now is 02:09 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|