1833151 Members
3242 Online
110051 Solutions
New Discussion

Re: variable not set

 
Javier Ortiz Guajardo
Frequent Advisor

variable not set

i have a problem when i set a varible by example
BEADIR=/opt/messageq; export BEADIR
then i run a program or something that use this variable and send me the message
BEADIR environment variable not set
the same happens with the variable TERM and other ones.
do you have any idea why the system does not recognize the variables? please email me at jortiz@gan.com.mx
Tahnks
The obstacles are those things that the people see when they left to see their goals.
9 REPLIES 9
Uday_S_Ankolekar
Honored Contributor

Re: variable not set

Hi,


When you set a env check whether new env is in place by running 'env' command.

Also check is your application you have some configuration files changing this parameter.

Goodluck
-USA
Good Luck..
harry d brown jr
Honored Contributor

Re: variable not set

what shell are you running? Doesn't sound like you are using ksh .

live free or die
harry
Live Free or Die
Javier Ortiz Guajardo
Frequent Advisor

Re: variable not set

ok i??m doing this.
pleas eview the attachment
The obstacles are those things that the people see when they left to see their goals.
Roger Baptiste
Honored Contributor

Re: variable not set

BEADIR=/opt/messageq; export BEADIR>

After you do this, check to
see whether it is really set-
do
echo $BEADIR
-> it should return /opt/messageq

If it does not, then it could
be a problem with the shell
you are using:
do echo $SHELL
-> it should be sh or ksh

If it is csh, then you would
need to use:
setenv BEADIR /opt/messageq

<>
check what shell this program is using.

-raj
Take it easy.
Javier Ortiz Guajardo
Frequent Advisor

Re: variable not set

yes i do an echo $BEADIR and it returns
/opt/messageq

then i type echo $SHELL and returns
/sbin/ksh
The obstacles are those things that the people see when they left to see their goals.
harry d brown jr
Honored Contributor

Re: variable not set

does bea require csh or ksh?
Live Free or Die
Javier Ortiz Guajardo
Frequent Advisor

Re: variable not set

it requires ksh, but something??s wrong with the variables, by example i set the variable
export TERM=vt100
then i exec man ll
and the terminal screen does not respond to the variable TERM, i mean the information appears moved. i could not find the reason, i have other machine and works fine.
any ideas?
The obstacles are those things that the people see when they left to see their goals.
Roger Baptiste
Honored Contributor

Re: variable not set


What is the output of
***
#echo $SHELL
#set (all your settings)
****

Next, as what user are you running this application?
Did it ever run correctly??

Some applications have a
initialization script which
sets variables needed by
subsequent startup scripts.
Does this application have
any such script?

If this application which you
are running is a shell script,
can you edit it (readonly) and
see whether it has any settings?

-raj
Take it easy.
Deepak Extross
Honored Contributor

Re: variable not set

Does the file /opt/messageq/user/grupo-00130/group.init reset BEADIR, by any chance?