Sponsored Content
Top Forums Shell Programming and Scripting add path variable permanently Post 302656493 by burton on Thursday 14th of June 2012 07:36:56 PM
Old 06-14-2012
add path variable permanently

Hi,

I have added the path variable as below

Code:
export LD_LIBRARY_PATH=/opt/oracle/product/1020/ctx/lib:/opt/oracle/product/1020/lib:/usr/openwin/lib:/opt/oracle/product/1020/jdbc/lib:/opt/oracle/product/1020/Apache/jdk/jre/lib/sparc:/opt/oracle/product/1020/jdk/jre/lib/sparc:/usr/openwin/lib:/usr/local/lib:/opt/oracle/product/oas4.0.8/orb/4.0/lib:/opt/oracle/product/oas4.0.8/ows/4.0/lib:/opt/oracle/product/oas4.0.8/ows/4.0/jdk/jre/lib/sparc:/opt/oracle/product/oas4.0.8/ots/1.0/lib:/opt/oracle/product/oas4.0.8/lib:/opt/oracle/product/1020/bin:/opt/oracle/product/1020/lib:/opt/oracle/product/1020/ctx/lib:/opt/app/gp/greenplum-db-6.00.0154/lib:/opt/oracle/product/1020/jdbc/lib:/opt/oracle/product/1020/Apache/jdk/jre/lib/sparc:/opt/oracle/product/1020/jdk/jre/lib/sparc:/opt/app/informatica861/server/bin:/opt/app/netezza465/lib:/opt/app/informatica861/ODBC5.2/lib:/usr/lib:/usr/openwin/lib:/usr/local/lib:/opt/app/gp/gp_driver_4.01/lib:/opt/app/gp/gp_driver_4.01/ext/python/lib:.

After I logout the session and login again, I did not find the changes done earlier.

Can anyone please help me to resolve it.

Thanks,
Burton

---------- Post updated at 05:06 AM ---------- Previous update was at 04:55 AM ----------

To add more detail

1. Initially it was like below,

Code:
LD_LIBRARY_PATH=/opt/oracle/product/1020/ctx/lib

2. After export the new path,

Code:
LD_LIBRARY_PATH=/opt/oracle/product/1020/ctx/lib:/opt/oracle/product/1020/lib:
command :
export LD_LIBRARY_PATH=/opt/oracle/product/1020/ctx/lib:/opt/oracle/product/1020/lib:

3. After re-logging to the session again it is like

Code:
LD_LIBRARY_PATH=/opt/oracle/product/1020/ctx/lib

How to make the changes permanently?

Last edited by methyl; 06-14-2012 at 09:40 PM.. Reason: please use code tags ; remove weird highlighting
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

add bin to variable PATH and save changes

i wrote a script and is running. I add the path bin to variable PATH, i.e. PATH=$PATH/bin. i add this to PATH in order to run the script in any path working directory. Thats ok. The problem is as son as i close the session and start a new session, changes are lost. How can i tell the shell or... (1 Reply)
Discussion started by: alexcol
1 Replies

2. Red Hat

permanently add static route

I have a machine with an interface that has two different addresses on CentOS 5 eth0: 10.20.21.77 eth0:1 141.218.1.221 If I issue this command I get the result I'm looking for. /sbin/route add -net 141.218.1.0 netmask 255.255.255.0 gw 10.20.21.77 ip route show dev eth0 141.218.1.0/24... (1 Reply)
Discussion started by: beaker457
1 Replies

3. Shell Programming and Scripting

remove a path from PATH environment variable

Hi I need a script which will remove a path from PATH environment variable. For example $echo PATH /usr/local/bin:/usr/bin:test/rmve:/usr/games $echo rmv test/rmve Here I need a shell script which will remove rmv path (test/rmve) from PATH... (9 Replies)
Discussion started by: madhu84
9 Replies

4. Shell Programming and Scripting

one liner to extract path from PATH variable

Hi, Could anyone help me in writing a single line code by either using (sed, awk, perl or whatever) to extract a specific path from the PATH environment variable? for eg: suppose the PATH is being set as follows PATH=/usr/bin/:/usr/local/bin:/bin:/usr/sbin:/usr/bin/java:/usr/bin/perl3.4 ... (2 Replies)
Discussion started by: royalibrahim
2 Replies

5. IP Networking

Is there any way to add an exception for a port in the firewall setting, permanently?

Hello, I want to add a port in the firewall exception list so that my application can be accessed over network even if firewall is disabled. I am using iptables command to add exception. The problem is, after setting the rule if I change the firewall setting i.e. on/off then it is overwriting... (1 Reply)
Discussion started by: senrooy
1 Replies

6. Shell Programming and Scripting

Appending a path in user's PATH variable

Hello Folks, I want to append a path in user's PATH variable which should be available in current session. Background Numerous persons will run a utility. Aim is to add the absolute path of the utility the first time it runs so that next runs have the PATH in env & users can directly run... (6 Replies)
Discussion started by: vibhor_agarwali
6 Replies

7. Shell Programming and Scripting

Path a variable to sed that includes a path

Hi I'm trying to select text between two lines, I'm using sed to to this, but I need to pass variables to it. For example start="BEGIN /home/mavkoup/data" end="END" sed -n -e '/${start}/,/${end}/g' doesn't work. I've tried double quotes as well. I think there's a problem with the / in the... (4 Replies)
Discussion started by: mavkoup
4 Replies

8. Shell Programming and Scripting

how to add a path variable

Hi, I tried to add a path vairable export GPLOAD_CONNECT_STR= -U crm -h sdc-gp1-dev1 -d wmgpdev but it throws the below error -bash: export: `-U': not a valid identifier -bash: export: `-h': not a valid identifier -bash: export: `sdc-gp1-dev1': not a valid identifier -bash: export:... (2 Replies)
Discussion started by: burton
2 Replies

9. Shell Programming and Scripting

Setting the path permanently using shell script

I'm trying to set the path permanently through a shell script. (/opt/quest/bin:/usr/bin/lab to /.profile.) I tired using echo option like below but it doesn't work. Please suggest me the right way to do so. echo "PATH=$PATH:/opt/quest/bin:/usr/bin/lab" >> /.profile (6 Replies)
Discussion started by: pjeedu2247
6 Replies

10. Red Hat

Add directory to path permanently

I ssh in and am trying to add a directory permanently to $PATH in centos 7 and having issues. My current $PATH is echo $PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin but when I do a sudo nano ~/.bashrc # .bashrc # User specific aliases and functions alias... (7 Replies)
Discussion started by: cmccabe
7 Replies
SHOREWALL6-LITE-VA(5)						  [FIXME: manual]					     SHOREWALL6-LITE-VA(5)

NAME
vardir - Shorewall6 Lite file SYNOPSIS
/etc/shorewall6-lite/vardir DESCRIPTION
This file does not exist by default. You may create the file if you want to change the directory used by Shorewall6 Lite to store state information, including compiled firewall scripts. By default, the directory used is /var/lib/shorewall6-lite/. The file contains a single variable assignment: VARDIR=directory where directory is the name of a directory. If you add this file, you should copy the files from /var/lib/shorewall6-lite to the new directory before performing a shorewall6-lite restart. Note Beginning with Shorewall 4.5.2, use of this file is deprecated in favor of specifying VARDIR in the shorewallrc file used during installation of Shorewall Core. While the name of the variable remains VARDIR, the meaning is slightly different. When set in shorewallrc, Shorewall6 Lite will create a directory under the specified path name to hold state information. Example: VARDIR=/opt/var/lib/ The state directory for Shorewall Lite will be /opt/var/lib/shorewall6-lite. When VARDIR is set in /etc/shorewall6-lite/vardir, Shorewall Lite will save its state in the directory specified. EXAMPLE
VARDIR=/root/shorewall6 FILES
/etc/shorewall6-lite/vardir SEE ALSO
shorewall6(8), shorewall6-accounting(5), shorewall6-actions(5), shorewall6-blacklist(5), shorewall6-hosts(5), shorewall6-interfaces(5), shorewall6-maclist(5), shorewall6-params(5), shorewall6-policy(5), shorewall6-providers(5), shorewall6-route_rules(5), shorewall6-routestopped(5), shorewall6-rules(5), shorewall6.conf(5), shorewall6-tcclasses(5), shorewall6-tcdevices(5), shorewall6-tcrules(5), shorewall6-tos(5), shorewall6-tunnels(5), shorewall6-zones(5) [FIXME: source] 06/28/2012 SHOREWALL6-LITE-VA(5)
All times are GMT -4. The time now is 10:09 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy