# This is the default .profile file. # Lines beginning with # are comments. # This file is run after you telnet, rlogin to your account or # login to a console running CDE as the default login or # login to an X-terminal and connect to a machine running CDE. # Your .variables.ksh file will be run by this file to set shell # variables. # The .profile file is NOT run when you log in to an X-terminal which # is not connecting to a machine running CDE or on a console not # configured to run CDE as the default login manager. # In that case, the .xinitrc.ksh will run the .variables.ksh. # The commands for terminals will not be run if the login is done by the # SP computer's LoadLeveler, that controls batch jobs to that machine. # The following command exports variables set here to your user shell. set -a # This command runs your ".variables.ksh" file. . ${HOME}/.variables.ksh cd /home/$USER # Exclude interactive commands & umenu if # PBS_ENVIRONMENT is set (PBS jobs on any architecture) if [ -z "$PBS_ENVIRONMENT" ] ; then # Sets default control keys for terminal commands. if [ ! "$DT" ]; then OS=`/uva/bin/cpuarch` case $OS in sun3 | sun4 | SunOS) stty intr '^C' erase '^H' kill '^X' susp '^Z' dsusp '^@' flush '^#' -ixon;; rs6000 | AIX | IRIX | IRIX64) stty intr '^C' erase '^H' kill '^X' susp '^Z' -ixon;; *) stty intr '^C' erase '^H' kill '^X' susp '^Z' -ixon;; esac fi # The following series of commands asks you to enter your terminal type, but # sets it to "vt100" if you hit return. If you are on an RS/6000 console, # your terminal type will be automatically set to "hft". if [[ "$TERM" = "vt220" || "$TERM" = "vt330" ]]; then TERM=vt100 fi if [[ "$TERM" = "dtterm" ]]; then TERM=xterm fi if [[ "$TERM" != "hft" && "$TERM" != "xterm" && "$TERM" != "vt100" ]]; then echo '\nEnter terminal type [default is vt100]: \c' read TERM TERM=${TERM:-vt100} fi case $OS in rs6000 | AIX) if [ "$UMENU" = "YES" -a "`tty -s`" -eq 0 ]; then if [ -x /uva/bin/umenu ]; then exec /uva/bin/umenu fi fi esac # Close exclusion of interactive section (SP batch job requirement) fi