Cover V04, I04
Article
Figure 1
Figure 2
Listing 1
Listing 2
Listing 3
Listing 4
Listing 5

jul95.tar


Listing 2: syspage

#!/bin/sh
#
#  Program:    syspage
#  Author:     Mark J. McDonagh
#  Version:    1.0
#  Date:       07/20/94
#  owner = root, group = adm, permissions = -rwxr-xr-x
#
#  Description:
#
#    This script was designed as a front end program to be used
#  with the numpager script.
#
clear
echo ""
echo ""
echo "This program allows you to page any of the following personnel, either"
echo "the systems administrator who is on call today for UNIX or PC related"
echo "problems or you can supply the name of the person that you want paged."
echo ""
echo "     1.   UNIX System Administrator"
echo "     2.   PC System Administrator"
echo "     3.   Other - Name to be supplied"
echo ""
echo "     9.   Exit"
echo ""
echo "  Please enter your selection: \c"
read ok
case $ok in
1) PAGPERSON="UNIXSA";;
2) PAGPERSON="PCSA";;
3) echo "";
echo "Please enter the name of the person you would like paged: \c";
read PAGPERSON;;
9) break;exit 1;;
*) echo "INVALID SELECTION, TRY AGAIN!";sleep 2;continue;;
esac
echo ""
echo "Please enter the phone number you would like to be called back at"
echo "using the format XXXXXXXXXX ie: 3155551212"
echo ""
echo "Phone Number: \c"
read PAGERCODE
echo ""
echo "Page is being sent - Please wait."
numpager $PAGPERSON $PAGERCODE