LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 09-25-2002, 02:46 AM   #1
beep_beep
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, 03:23 AM   #2
beep_beep
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?
Why?
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 03:26 AM.
 
Old 09-25-2002, 08:41 AM   #3
stickman
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.
 
  


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 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 10:34 AM
set environment variable Jongi Linux - Newbie 7 03-01-2004 04:34 AM
MAIL variable not set in X tjpick Slackware 1 08-14-2003 02:27 AM
How to set a environment variable in rh? yenonn Linux - Newbie 11 02-21-2003 10:24 PM
how to set CC environment variable mr.moto General 2 12-18-2001 01:02 AM


All times are GMT -5. The time now is 04:54 PM.

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