####################################################################### # # This is the OMP default .profile for users with Exceed Xstart access. # Note that a user's .profile is executed by the login process after /etc/profil e. # This .profile executes the OMP envinit which establishes the user OMP environm ent. # This .profile will NOT execute the OMP menuinit, a separate script (start_mter m) # has been created to support the execution of the OMP menuinit over an MTERM te rminal.\ # # This .profile is copied to the user's home directory when and if X-term access # is needed. The copy in the user's home directory may then be edited as needed. # ####################################################################### # Trap interrupt and quit signals so there is no escape to the shell trap "" 2 3 # Set OMP working environment if [ -r "/omp/etc/envinit" ] then . /omp/etc/envinit fi # Modify environment variables as needed here ExceedAccess=0 WsHost=`/bin/egrep "^$INETADDR[ ]|[ ]$INETADDR[ ]|[ ]$INETADDR$" /etc/hosts | /b in/grep ompws 2>/dev/null` WsTerm=`$OPENWINHOME/bin/xdpyinfo 2>/dev/null | /bin/grep 'focus:'` WsWM=`/bin/echo $WsTerm | /bin/grep 'focus:[ ][ ]*window' | /bin/egrep 'Parent|P ointerRoot'` if [ \( "$WsHost" != "" -a "$WsWM" = "" -a "$DISPLAY" != "" \) -o \( "$WsTerm" ! = "" -a "$WsWM" = "" -a "$DISPLAY" != "" \) ] then ExceedAccess=1 fi if [ $PAGEPARM ] then # cut- through to desired cdt page exec /omp/bin/CDTcut.exp $PAGEPARM elif [[ -r "/omp/etc/ex_menuinit" && "$ExceedAccess" = 0 ]] then #Start OMP menu system . /omp/etc/ex_menuinit fi