1829486 Members
1907 Online
109991 Solutions
New Discussion

Re: Environment variable

 
kunjuttan
Super Advisor

Environment variable

Hi,
As per the requirement of Application Team,I am trying to change an env variable (CPIC_MAX_CONV) to 5000 which is now 500.I issued th command "setenv CPIC_MAX_CONV 5000.It is working fine and getting changed.But once I log off and relogin ,it is again changing to 500 itself.How to solve this issue???
5 REPLIES 5
Michal Kapalka (mikap)
Honored Contributor

Re: Environment variable

hi,

because the viariable is set only for your current shell.

an example how to change the variables :

http://kb.iu.edu/data/acar.html

mikap

Hakki Aydin Ucar
Honored Contributor

Re: Environment variable

it depends on which shell you use;
check it out
# echo $0
kunjuttan
Super Advisor

Re: Environment variable

Thanks...But what should I do to fix this???
Steven Schweda
Honored Contributor

Re: Environment variable

> [...] But what should I do to fix this???

Read better?

> it depends on which shell you use; [...]

From your "setenv", I'd guess that you're
using a C shell, so you might wish to put
that "setenv" command into your "~/.cshrc"
file. Other shells may use different
start-up command files (and different syntax
to set an environment variable).

man
Dennis Handly
Acclaimed Contributor

Re: Environment variable

>How to solve this issue?

Where are you setting it to 500? Just change that place.

That may be in the file Steven mentioned or elsewhere.