Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - General
User Name
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.


  Search this Thread
Old 09-25-2002, 03:46 AM   #1
LQ Newbie
Registered: Aug 2002
Distribution: RH7.3; 8.0, SuSE 9.1
Posts: 26

Rep: Reputation: 15
Very complex for newbie, why in some case I can set variable and in other - I can't

Boot time (run level 5) bush execution
and after login time bush execution,
what a difference?

In my SuSe I write in profile.local
export SOME_VAR=/xxx/xxx/xxx
and this variable was accessible after login,

but in my RH7.3 I attempt to set this variable in
rc.local and same command does not work,
I see(by ECHO) the file was passed during boot time,
but variable not appears after login.

Why in some case I can set variable "permanently", and in other case - I can't.?
Old 09-25-2002, 04:23 AM   #2
LQ Newbie
Registered: Aug 2002
Distribution: RH7.3; 8.0, SuSE 9.1
Posts: 26

Original Poster
Rep: Reputation: 15
I try to answer myself:
may be after login system ignores all setting (of variables) from
rc.local and accepts only setting from profile file?
May be exists some trick to not allow variables disappear from stage to stage?

I'm so stupid!

Last edited by beep_beep; 09-25-2002 at 04:26 AM.
Old 09-25-2002, 09:41 AM   #3
Senior Member
Registered: Sep 2002
Location: Nashville, TN
Posts: 1,552

Rep: Reputation: 53
profile.local and rc.local serve two different purposes. The first is used to create a standardized environment for users. The second is used to setup and start local system services.


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 On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Set variable with value of another Ephracis Programming 7 12-25-2004 11:34 AM
set environment variable Jongi Linux - Newbie 7 03-01-2004 05:34 AM
MAIL variable not set in X tjpick Slackware 1 08-14-2003 03:27 AM
How to set a environment variable in rh? yenonn Linux - Newbie 11 02-21-2003 11:24 PM
how to set CC environment variable General 2 12-18-2001 02:02 AM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 03:32 AM.

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