Annotation of researchv10no/cmd/uucp/unused/uutry, revision 1.1

1.1     ! root        1: 
        !             2: #      This shell will start a uucico for the system given.
        !             3: #      Options:
        !             4: #        -xN the debugging level for uucico (-x5 default)
        !             5: #        -r  force the removal of the status file
        !             6: #      The output is put in /tmp/Name where Name is the name
        !             7: #      of the system name.  A tail -f is performed after uucico is started.
        !             8: 
        !             9: STATUS=/usr/spool/uucp/.Status
        !            10: UUCICO=/usr/lib/uucp/uucico
        !            11: 
        !            12: REMOVE=""
        !            13: X="-x5"
        !            14: SYS=
        !            15: for arg
        !            16: do
        !            17:        case $arg in
        !            18:        -x*) X=$arg;;
        !            19:        -r) REMOVE="y";;
        !            20:        *) SYS="$arg";;
        !            21:        esac
        !            22: done
        !            23: if [ -z "$SYS" ]
        !            24: then
        !            25:        echo "$0:  system name required"
        !            26:        exit 1
        !            27: fi
        !            28: 
        !            29: #  use 7 character maximum name length (SYSNSIZE in uucp.h) for search
        !            30: SYSTEM=`echo $SYS | cut -c1-7`
        !            31: 
        !            32: #  check for existence in L.sys
        !            33: XX=
        !            34: XX=`uuname | grep $SYSTEM `
        !            35: if [ -z "$XX" ]
        !            36: then
        !            37:        echo "Invalid system name \"$SYSTEM\""
        !            38:        exit
        !            39: fi
        !            40: set $XX
        !            41: FULLNAME=$1
        !            42: for i
        !            43: do
        !            44:     if [ $i = $SYS ]; then
        !            45:        FULLNAME=$SYS
        !            46:        break
        !            47:     fi
        !            48: done
        !            49: #  remove old status file
        !            50: if [ -n "$REMOVE" ]; then
        !            51:     rm -f $STATUS/${FULLNAME}
        !            52: fi
        !            53: 
        !            54: echo "$UUCICO -r1 -s$FULLNAME  $X &"
        !            55: $UUCICO  -r1 -s$FULLNAME  $X &

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.