1838667 Members
4797 Online
110128 Solutions
New Discussion

Setting env

 
marshal_4
Advisor

Setting env

Just a follow up question how can i add this entry to my env /informix/informix

thanks,
marshal
want some guts learn HPUX
6 REPLIES 6
Sritharan
Valued Contributor

Re: Setting env

Hi,

Don't really understand the question, but I assume that you want to add some environment for your informix user.What you have to do is

1. login as
2. vi .profile
3. add the environment that you want at the end of the line. e.g
INFORMIXDIR=/ifmx/informix

For this configuration to take effect you have to logout and login.

Thanks & Regards
Sri
Known is a drop...unknown is an ocean -> quote from a movie
Zigor Buruaga
Esteemed Contributor

Re: Setting env

Hi,

In addition, don't forget to export your new variable:

MYVAR=/informix/informix
export MYVAR

Kind regards,
Zigor
marshal_4
Advisor

Re: Setting env

Ah, you mean i'm going to add it in the PATH
for example PATH="$PATH:/usr/lib:/infx/informix"


thanks, marshal
want some guts learn HPUX
Zigor Buruaga
Esteemed Contributor

Re: Setting env

Hi,

It depends, what do you need?
I don't have Informix, but for example in Sybase I need a variable like this:

SYBASE=/sybase
export SYBASE

and many others, so depends what is your need.

Kind regards,
Zigor
T G Manikandan
Honored Contributor

Re: Setting env

INFORMIXDIR=/informix/informix
export INFORMIXDIR


make the entries in .profile to persist entries
Also add the PATH in /etc/PATH or .profile of the user

PATH=$PATH:INFORMIXDIR:INFORMIXDIR/bin
T G Manikandan
Honored Contributor

Re: Setting env

sorry

PATH=$PATH:$INFORMIXDIR:$INFORMIXDIR/bin