#*************************************************************** # environment #*************************************************************** set say = "echo" set mode = "" set node = "`uname -n`" set user = "`logname`"
#*************************************************************** # this path and this script #*************************************************************** set this_path1 = "`dirname ${HOME}/x`" set this_script1 = "app_login"
if ( ! -f ${this_path1}/${this_script1} ) then $say 'this script must be in the directory $HOME' goto exit endif
#*************************************************************** # set project and channel prefix for all user #*************************************************************** if ( "$user" == "root" ) then setenv PROJ pcfc setenv CPRE "" endif
if ( "$user" == "pcfc" ) then setenv PROJ pcfc setenv CPRE "" endif
if ( "$user" == "picsadm" ) then setenv PROJ baoshan setenv CPRE "" endif
if ( "$user" == "picsvis" ) then setenv PROJ baoshan setenv CPRE "" endif
if ( "$user" == "" ) then setenv PROJ pcfc setenv CPRE "" endif
#*************************************************************** # set project directory #*************************************************************** setenv PROJ_DIR /home/$PROJ
app_login_pcfc ============== #*************************************************************** #* module: application_login_$PROJ #* description: application login for a project #* This script must be called in the login file app_login #* with the command 'source app_login_$PROJ' #* author: Zhou zeyan #* #* version: 8.1.2000 #***************************************************************
#*************************************************************** # environment #*************************************************************** set say = "echo" set mode = "" set node = "`uname -n`" set user = "`logname`"
#*************************************************************** # this path and this script #*************************************************************** set this_path2 = "`dirname ${HOME}/x`" set this_script2 = "app_login_$PROJ"
#*************************************************************** # history #*************************************************************** set history=40 alias h history
#*************************************************************** # aliases #*************************************************************** alias sql sqlplus pcfcadm/pcfcadm
#*************************************************************** # set environment for components #***************************************************************
set cmp = glb if ( -r "${PROJ_DIR}/${cmp}/etc/${cmp}_init" ) then source ${PROJ_DIR}/${cmp}/etc/${cmp}_init endif set cmp = utl if ( -r "${PROJ_DIR}/${cmp}/etc/${cmp}_init" ) then source ${PROJ_DIR}/${cmp}/etc/${cmp}_init endif set cmp = com if ( -r "${PROJ_DIR}/${cmp}/etc/${cmp}_init" ) then source ${PROJ_DIR}/${cmp}/etc/${cmp}_init endif set cmp = log if ( -r "${PROJ_DIR}/${cmp}/etc/${cmp}_init" ) then source ${PROJ_DIR}/${cmp}/etc/${cmp}_init endif set cmp = tel if ( -r "${PROJ_DIR}/${cmp}/etc/${cmp}_init" ) then source ${PROJ_DIR}/${cmp}/etc/${cmp}_init endif set cmp = mva if ( -r "${PROJ_DIR}/${cmp}/etc/${cmp}_init" ) then