LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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 06-04-2008, 04:26 AM   #1
pnsidhu
LQ Newbie
 
Registered: May 2008
Posts: 4

Rep: Reputation: 0
how to export a bash shell variable before init.d process start


Hi All
How to export a bash shell variable before a init.d process starts
and if i export a bash variable in the /etc/init.d/"demon" work ??.
 
Old 06-04-2008, 09:21 AM   #2
Agrouf
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: LFS
Posts: 1,591

Rep: Reputation: 79
It depends on your distro, but usually, there is a /etc/init.d/rc script that launches the other scripts.
Anyway, is there any use in exporting a bash variable before launching the daemon script? Isn't the daemon script just the place where you should export the variables?
 
  


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
How to export environment variable from a bash script dimaash Linux - Newbie 20 08-09-2011 08:12 AM
variable export in shell MarioT Programming 3 05-17-2006 12:52 AM
cannot export result from awk into a variable in a bash script Emmanuel_uk Linux - Newbie 4 03-07-2005 02:54 AM
Export Shell Variable not working maxhugen Linux - Newbie 6 01-06-2005 11:12 PM
BASH variable export Barbarian Programming 2 11-27-2001 09:37 PM


All times are GMT -5. The time now is 09:36 PM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration