LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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-2006, 08:09 AM   #1
delmoras
LQ Newbie
 
Registered: Nov 2005
Posts: 18

Rep: Reputation: 0
setting up system variable


hello!i want to install ingres on fedora core but first i must set up a system variable called II_SYSTEM which will have value of /RDBMS/ingres/ingres2006.does anyone know how can i do it?
 
Old 03-02-2006, 08:15 AM   #2
ethics
Senior Member
 
Registered: Apr 2005
Location: London
Distribution: Arch - Latest
Posts: 1,522

Rep: Reputation: 45
you could add the following lines to your .bash_profile (runs at login) or .bashrc (everytime you open a shell)

Code:
II_SYSTEM=/RDBMS/ingres/ingres2006
Code:
export $II_SYSTEM
Or do you need it to run at bootup?
 
Old 03-02-2006, 08:22 AM   #3
delmoras
LQ Newbie
 
Registered: Nov 2005
Posts: 18

Original Poster
Rep: Reputation: 0
system var

Quote:
Originally Posted by ethics
you could add the following lines to your .bash_profile (runs at login) or .bashrc (everytime you open a shell)

Code:
II_SYSTEM=/RDBMS/ingres/ingres2006
Code:
export $II_SYSTEM
Or do you need it to run at bootup?
yes i would like to run at bootup
 
Old 03-02-2006, 08:36 AM   #4
ethics
Senior Member
 
Registered: Apr 2005
Location: London
Distribution: Arch - Latest
Posts: 1,522

Rep: Reputation: 45
depends what distro as some put them in different places.

try
Code:
/etc/init.d/rc.d
if not then try other such paths like
Code:
/etc/rc.d/
(if i was on my FC box right i'd be able to give you better ones to try, sorry, they are ones i pulled up in a search)

Anyway, you will find files named S or K then a number, S is start, K is kill, the lower the number the higher it's priority i believe. Take a look at some examples in there, but you should be able to make a new file and add the lines i supplied.

Don't forget to give it executable permissions:

Code:
chmod +x <file>
to test it works:

Code:
echo $II_SYSTEM

Last edited by ethics; 03-02-2006 at 08:38 AM.
 
Old 03-02-2006, 08:52 AM   #5
delmoras
LQ Newbie
 
Registered: Nov 2005
Posts: 18

Original Poster
Rep: Reputation: 0
thnxxx

Quote:
Originally Posted by ethics
depends what distro as some put them in different places.

try
Code:
/etc/init.d/rc.d
if not then try other such paths like
Code:
/etc/rc.d/
(if i was on my FC box right i'd be able to give you better ones to try, sorry, they are ones i pulled up in a search)

Anyway, you will find files named S or K then a number, S is start, K is kill, the lower the number the higher it's priority i believe. Take a look at some examples in there, but you should be able to make a new file and add the lines i supplied.

Don't forget to give it executable permissions:

Code:
chmod +x <file>
to test it works:

Code:
echo $II_SYSTEM
thnx pal!i have done it!
 
Old 03-02-2006, 08:56 AM   #6
marozsas
Senior Member
 
Registered: Dec 2005
Location: Campinas/SP - Brazil
Distribution: SuSE, RHEL, Fedora, Ubuntu
Posts: 1,402
Blog Entries: 1

Rep: Reputation: 64
I think there is a error here: the correct is: (note the absence of the dollar sign)
Code:
export II_SYSTEM
or better
Code:
export II_SYSTEM=/RDBMS/ingres/ingres2006
 
  


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
Setting an environmental variable maevious Linux - Newbie 6 11-24-2005 05:15 PM
setting environment variable kb_ganesh Ubuntu 3 09-10-2005 02:58 PM
Setting of LANG variable r_213 Linux - General 7 01-06-2005 01:46 AM
Help setting $PATH variable Nylex Linux - General 9 08-09-2003 12:44 PM
setting CLASSPATH variable gabadoo Linux - Newbie 7 01-21-2002 05:24 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:27 AM.

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