Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 03-02-2009, 03:45 AM   #1
LQ Newbie
Registered: Feb 2009
Posts: 8

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


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
LQ Guru
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 75
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
LQ Newbie
Registered: Feb 2009
Posts: 8

Original Poster
Rep: Reputation: 0
Lightbulb like a charm!! []


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 > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:20 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration