LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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, 07: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, 07: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, 07: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, 07: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 07:38 AM.
 
Old 03-02-2006, 07: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, 07:56 AM   #6
marozsas
Senior Member
 
Registered: Dec 2005
Location: Campinas/SP - Brazil
Distribution: SuSE, RHEL, Fedora, Ubuntu
Posts: 1,499
Blog Entries: 2

Rep: Reputation: 68
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



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

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

All times are GMT -5. The time now is 02:31 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
Open Source Consulting | Domain Registration