LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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


Reply
  Search this Thread
Old 04-28-2014, 05:42 AM   #1
Erik0067
LQ Newbie
 
Registered: Apr 2014
Posts: 3

Rep: Reputation: Disabled
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 05:44 AM.
 
Old 04-28-2014, 05:53 AM   #2
kirukan
Senior Member
 
Registered: Jun 2008
Location: Eelam
Distribution: Redhat, Solaris, Suse
Posts: 1,278

Rep: Reputation: 148Reputation: 148
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
 
Old 04-28-2014, 07:31 AM   #3
Erik0067
LQ Newbie
 
Registered: Apr 2014
Posts: 3

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by kirukan View Post
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.
 
Old 04-28-2014, 10:45 AM   #4
Erik0067
LQ Newbie
 
Registered: Apr 2014
Posts: 3

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Erik0067 View Post
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!
 
Old 04-28-2014, 11:13 AM   #5
kirukan
Senior Member
 
Registered: Jun 2008
Location: Eelam
Distribution: Redhat, Solaris, Suse
Posts: 1,278

Rep: Reputation: 148Reputation: 148
An application run by a normal user or super user which is root. if so this /etc/profile will apply to all.
 
  


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
help a newbie with system wide environmental variables, please chuck1005 Linux - Newbie 4 04-02-2012 02:08 AM
Few commands not found after exporting environmental variables in the system narendra1310 Linux - Newbie 3 05-23-2008 08:47 AM
where to put system-wide environment variables otoomet Linux - Software 2 01-07-2008 08:06 AM
How to define Environmental Variables in Suse khairkhoah Linux - Software 16 06-08-2006 06:54 AM
System wide Environment variables Steave Linux - General 1 02-08-2002 06:44 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:34 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