From: "Matthew Tan" <tankc@singnet.com.sg>
Subject: Where did this value come from ?
Date: 1999/09/14 [thread overview]
Message-ID: <7rkaf7$lha$1@violet.singnet.com.sg> (raw)
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=<my server hostname>
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
next reply other threads:[~1999-09-14 4:00 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-09-14 4:00 Matthew Tan [this message]
1999-09-14 4:00 ` Where did this value come from ? Matthew Tan
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox