|
|
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: TMP=/tmp/U$$U
11: UUCICO=./uucico
12: trap 'rm -f $TMP' 0 1 2 3 15
13:
14: REMOVE=""
15: X="-x5"
16: SYS=
17: for arg
18: do
19: case $arg in
20: -x*) X=$arg;;
21: -r) REMOVE="y";;
22: *) SYS="$arg";;
23: esac
24: done
25: if [ -z "$SYS" ]
26: then
27: echo "$0: system name required"
28: exit 1
29: fi
30:
31: # use 7 character maximum name length (SYSNSIZE in uucp.h) for search
32: SYSTEM=`echo $SYS | cut -c1-7`
33:
34: # check for existence in L.sys
35: # This is a bit complicated because one has to worry about
36: # names that may be prefixes of others!
37: XX=
38: XX=`uuname | grep $SYSTEM `
39: if [ -z "$XX" ]
40: then
41: echo "Invalid system name \"$SYSTEM\""
42: exit
43: fi
44: set $XX
45: FULLNAME=$1
46: for i
47: do
48: if [ $i = $SYS ]; then
49: FULLNAME=$SYS
50: break
51: fi
52: done
53:
54: STMP=/tmp/$FULLNAME
55: rm -f $STMP
56: > $STMP
57: chmod 666 $STMP
58: # remove old status file
59: if [ -n "$REMOVE" ]; then
60: rm -f $STATUS/${FULLNAME}
61: fi
62:
63: echo "$UUCICO -r1 -s$FULLNAME $X >$STMP 2>&1&"
64: $UUCICO -r1 -s$FULLNAME $X >$STMP 2>&1&
65:
66: echo "tmp=$STMP"
67: tail -f $STMP
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.