From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,21ce932e01223156 X-Google-Attributes: gidfee84,public From: "Matthew Tan" Subject: Re: Where did this value come from ? Date: 1999/09/14 Message-ID: <7rkf5b$vf$1@violet.singnet.com.sg>#1/1 X-Deja-AN: 524746472 References: <7rkaf7$lha$1@violet.singnet.com.sg> Organization: Singapore Telecommunications Ltd X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 Newsgroups: comp.unix.osf.osf1 Found the answer finally ! Did a find and realized that this value is set in the .profile of the root Matthew Tan wrote in message <7rkaf7$lha$1@violet.singnet.com.sg>... >Hello guys, > >Currently I am using an ASC terminal emulator. When I first do a login under >my >name and do an env I would see one of the variables as > >INFORMIXSERVER=ol_company > >This value is correct. But when I do su - to root and do a env again I would >see : > >INFORMIXSERVER= > > > >Where did this value come from ? > >I have added my profile and /etc/profile for you guys to go over. > >Thanks in advance ! > > >~~~~~~~~~~~ > >This is the /etc/profile script : > >trap "" 2 3 >export LOGNAME TERM >. /etc/TIMEZONE ># Login and -su shell get /etc/profile services. ># -rsh is given its environment in its .profile. >case "$0" in >-su ) > export PATH > ;; >-sh ) > export PATH > ;; >-ksh ) > export PATH > ;; >esac >umask 022 >trap 2 3 >BSE=/user1/triton/bse >BSE_TMP=/user1/triton/bse/tmp >PATH=${BSE}/bin:${PATH} >PATH=$PATH:/sbin:/usr/sbin:/usr/bin:/etc >export BSE BSE_TMP PATH ># Informix variables >INFORMIXDIR=/user1/informix >PATH=$PATH:$INFORMIXDIR/bin >ONCONFIG=onconfig.company >INFORMIXSERVER=ol_company >export INFORMIXDIR PATH ONCONFIG INFORMIXSERVER > >This is my .profile script : > >PATH=$HOME/bin:${PATH:-/usr/bin:.} >PATH=$PATH:$HOME/scripts >export PATH >if [ ! "$DT" ]; then > stty dec > tset -I -Q >fi >stty intr ^L >PS1="`hostname`> " export PS1 >MAIL=/usr/spool/mail/$USER >PRINTER=lq2170a_ssv >TERM=vt100 export TERM >HISTSIZE=30 >EDITOR=vi >/sbin/df -k >/usr/bin/mailx > > > >