#!/bin/ksh
#################################################################
# Script term #
# Synopsys term window1 [window2 window3 window3...] #
# Descriptions Builds xterm windows with single command #
# Written 03/25/97 #
# Modifications 02/01/00 - Changed SwitchMATE aliases to match #
# their city based aliases, i.e. tacsm, nsesm... #
# 03/07/00 - Adding OMCRs... Ultimately, we will #
# open an omcr window with all the subordinate #
# MMs, each in their own window at the same time. #
# 03/08/00 - Added test to find out if the var #
# $DISPLAY is set. If it is not, inform the user #
# and exit. #
# 05/15/00 - Copied to cliff for home use... #
# 09/10/01 - Added bob to connection list #
# 09/23/01 - Added larry to connection list #
# 12/07/01 - Added mom to connection list #
# 01/04/03 - Changed larry to stitch for new real #
# server. - rmorten #
# Author Rick Mortensen, Tacoma MSC #
#################################################################

# Program Variables
USAGE1="\n\tUsage=\t\t\tterm window1 [window2 window3 window4...]\n\tWhere window[?]=\txterm window from list.\n\tList=\t\t\ttraffic, nv2, tacsm, ssesm, nsesm, nv10, nv16\n"
ubin=/usr/bin
xbin=/usr/X11R6/bin
PWD=`pwd`

# Temp files
TMP1=/tmp/.tmp1.$$
TMP2=/tmp/.tmp2.$$
TMP3=/tmp/.tmp3.$$
TMP4=/tmp/.tmp4.$$
TMP5=/tmp/.tmp5.$$
TMP6=/tmp/.tmp6.$$

# Set Traps to remove Temp Files
trap "rm -f $TMP1 $TMP2 $TMP3 $TMP4 $TMP5 $TMP6 ; tput clear ; echo '\n\n\n\n\n\n\n\n\n\t\t\t\tProgram Terminated!\n\n\n\n\n\n\n\n\n\n\n' ; exit" 1 2 3 15

# Check for $DISPLAY
if [ -z "${DISPLAY}" ]
then
echo "\nYour display is not set. Please set your display and try again...\n\n"
exit
fi
echo $DISPLAY

if [ "$#" -lt 1 ]
then
echo $USAGE1;rm -f $TMP1 $TMP2 $TMP3 $TMP4 $TMP5 $TMP6 ;exit
fi

# Get right to work
for x in $*
do
case $x in
cliff)sleep 1;$ubin/rsh cliff $xbin/xterm -ls -geometry +840+0 -fg firebrick4 -bg lightyellow1 -cr violet -sb -sl 2000 -display ${DISPLAY} -name CLIFF -title CLIFF & ;;
sparty)sleep 1;$ubin/rsh sparty $xbin/xterm -ls -geometry +860+30 -fg royalblue4 -bg antiquewhite -cr violet -sb -sl 2000 -display ${DISPLAY} -name SPARTY -title SPARTY & ;;
stitch)sleep 1;$ubin/rsh stitch $xbin/xterm -ls -geometry +880+60 -fg darkgreen -bg ghostwhite -cr violet -sb -sl 2000 -display ${DISPLAY} -name STITCH -title STITCH & ;;
mom)sleep 1;$ubin/rsh mom $xbin/xterm -ls -geometry +880+60 -fg darkgreen -bg ghostwhite -cr violet -sb -sl 2000 -display ${DISPLAY} -name MOM -title MOM & ;;
esac
done

 

  • Expect the best and be prepared for the worst.

  • It is the service that counts, the product can be found anywhere...

[Under Construction]This website will always be under construction...
The information contained within this website is confidential and only to be used in conjunction with the employment of Richard C. Mortensen.  All other use is unauthorized.
Send mail to webmaster@can-be-scanned.com with questions or comments about this web site.
Copyright © 2000 PR Enterprises, Inc.
Last modified: June 09, 2000