Profile File in Unix

Hi,

I have to run a sqr program.
In the profile file everything is set.

e.g
APPLID=personel
APPPATH=/${ENVIRONMENT}/${APPPATH}

and so on..

SQRDIR=/opt/sqr/bin/syb

Still when I'm running this script,its giving error APPLID not set and SQRDIR not set.

Any idea,why?
TIA

Have you export the variables?

Regards

yes ..

export APPLID APPPATH ...

The contents of /etc/profile and .profile are only read by a login shell i.e. the shell that is spawned when you login to your system. If you are using bash try putting the required variables in your .bashrc, or in .kshrc if you are using ksh. Also you should export the variables.

You can also source the profile file before you start your script:

. /dir/profile.file

Regards

jus run the command "set" in unix prompt and see the whther the varibale i exported or not.