Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 01-04-2006, 03:43 AM   #1
Registered: Jul 2004
Posts: 56

Rep: Reputation: 15
Set environment

can i use a script to set environment variable for my environment where i m working?
i created a script file and wrote

ORACLE_HOME=/opt/oracle/product/9.2.0; export ORACLE_HOMRE

it runs but it doesnt set the environment variables for my environment but if i run these on commant line then environment is set...kindly tell me SYNTEX for this
Old 01-04-2006, 03:50 AM   #2
Registered: Apr 2005
Location: Jordan
Distribution: Debian (Sarge), Ubuntu (6.06)
Posts: 271

Rep: Reputation: 31
Did you add a #!/bin/sh or a #!/bin/bash at the first line of your script?

Also, notice there's a typo on the ORACLE_HOME line.


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 set a value of environment variable? ukrainet Linux - Newbie 1 12-28-2004 04:33 AM
How to set environment variables anjaan Linux - General 3 06-10-2004 02:04 PM
set environment variable Jongi Linux - Newbie 7 03-01-2004 04:34 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 General 2 12-18-2001 01:02 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:12 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