The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
If File has been updated, do something?? cbo0485 Shell Programming and Scripting 5 11-07-2008 10:52 AM
Log file not getting updated KornFire High Level Programming 4 10-21-2008 03:12 AM
How to convert byteArray variables to HexaString variables for Linux? ritesh_163 High Level Programming 2 08-10-2008 11:55 PM
Updated /etc/dfs/dfstab benq70 UNIX for Dummies Questions & Answers 1 01-05-2006 09:39 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 03-10-2009
swethuanju swethuanju is offline
Registered User
  
 

Join Date: Mar 2009
Posts: 1
Env variables not getting updated from the bashprofile

Hi,
I am using the HP-UX machine of version B.11.23. My bashprofile looks like this :

# @(#)B11.23_LR
# Default user .profile file (/usr/bin/sh initialization).
#! /usr/bin/bash
# Set up the terminal:
if [ "$TERM" = "" ]
then
eval ` tset -s -Q -m ':?hp' `
else
eval ` tset -s -Q `
fi
stty erase "^H" kill "^U" intr "^C" eof "^D"
stty hupcl ixon ixoff
tabs
# Set up the search paths:
PATH=$PATH:.
# Set up the shell environment:
set -u
trap "echo 'logout'" 0
# Set up the shell variables:
EDITOR=vi
export EDITOR
exec /usr/local/bin/bash

# Netezza4.5
export SHLIB_PATH=$SHLIB_PATH:/home/Netezza/lib:/usr/local/lib
export PATH=$PATH:/home/Netezza/bin:/usr/local/bin

when i check the env variables, using env command, i am not able to see SHLIB_PATH.

i.e. if i give echo $SHLIB_PATH, it is showing the blank path
and $PATh is not showing the path mentioned in the bashprofile

If i remove the line "exec /usr/bin/bash", then i am able to see the $path in env but when i am sourcing the bashprofile, it is showing that $SHLIB_PATH : unbound variable

Please help me regarding this.



Last edited by swethuanju; 03-10-2009 at 03:22 AM..
Sponsored Links
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 02:57 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language translation by Google.
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0