* Where did this value come from ?
@ 1999-09-14 4:00 Matthew Tan
1999-09-14 4:00 ` Matthew Tan
0 siblings, 1 reply; 2+ messages in thread
From: Matthew Tan @ 1999-09-14 4:00 UTC (permalink / 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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Where did this value come from ?
1999-09-14 4:00 Where did this value come from ? Matthew Tan
@ 1999-09-14 4:00 ` Matthew Tan
0 siblings, 0 replies; 2+ messages in thread
From: Matthew Tan @ 1999-09-14 4:00 UTC (permalink / raw)
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=<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
>
>
>
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~1999-09-14 4:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-09-14 4:00 Where did this value come from ? Matthew Tan
1999-09-14 4:00 ` Matthew Tan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox