LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
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 03-02-2009, 03:45 AM   #1
shan23
LQ Newbie
 
Registered: Feb 2009
Posts: 8

Rep: Reputation: 0
Exclamation export environment variables at boot-up


Hi,

I'm installing a particular CAD tool which requires a environment variable to be defined as soon as the machine is turned on . I know i could do so by adding a "export ..." line in the .bashrc file, but then ( as far as i know) i have to edit the .bashrc file for all existing users in the machine...Also, i would have to manually add the line to all new users of the system.

I have tried adding the "export ABC=..." line in /etc/rc.d/rc.local , but when i rebooted the machine and logged in from a random account, i found ( by invoking "env" ) that the variable is not defined....

Pls suggest a suitable solution....I'm using Fedora 3 Enterprise

Last edited by shan23; 03-02-2009 at 03:47 AM.
 
Old 03-02-2009, 03:51 AM   #2
reddazz
Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 73
You can set the variable globally in /etc/profile or by creating a script for your variable in /etc/profile.d.
 
Old 03-02-2009, 07:28 AM   #3
shan23
LQ Newbie
 
Registered: Feb 2009
Posts: 8

Original Poster
Rep: Reputation: 0
Lightbulb

thanks...works like a charm!! []
 
  


Reply

Tags
boot, export, variable


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
not able to export the Variables smartgupta Solaris / OpenSolaris 2 09-29-2008 03:11 PM
How to export special characters into environment variables? das_Schaf Linux - General 6 06-24-2006 07:17 AM
export variables alaios Linux - General 3 12-04-2004 07:33 AM
really easy question: why won't my environment variables export digitized_funk Linux - Newbie 3 10-22-2003 05:22 AM
Setting environment variables on boot dwynter Linux - Newbie 3 10-02-2002 11:14 PM


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