1847086 Members
5596 Online
110262 Solutions
New Discussion

Re: Universal Pathnames

 
Daniel Kennedy
Advisor

Universal Pathnames

I have been trying to set my environment variables for OpenView. I execute the /ov.envvars.sh. I then use the ???echo $PATH??? command, but unfortunately I don???t receive the any OV variables. What step am I missing?
3 REPLIES 3
Hai Nguyen_1
Honored Contributor

Re: Universal Pathnames

If you source your env program like this

# . /ov.envvars.sh

then you should see your new paths.

The way you did it means that
you ran the program in a subshell. As soon as the program exited, all env variables set by it were gone as well.

Hai
Sanjay_6
Honored Contributor

Re: Universal Pathnames

Hi Daniel,

Try

. ./ov.envvars.sh

echo $PATH

Hope this helps.

Regds
A. Clay Stephenson
Acclaimed Contributor

Re: Universal Pathnames

If you modify the ov.envvars.sh, make sure that you don't put any exit or return statements in as well or you will unexpectedly exit your shell since you are running in the foreground using the . (source) operator.
If it ain't broke, I can fix that.