summaryrefslogtreecommitdiffstats
path: root/gnu/libexec/uucp/contrib/uutry
blob: 258bb302f09dce9c9672ec3096429a2a38b812a5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#!/bin/sh
#
# This script was hacked together by Marc Evans (marc@Synergytics.Com)
# I claim no copyright to it and don't really care what people do
# with it, hence, it is public domain. I take no responsibility for
# for happens if you use this script, providing no warentee. This
# section of the comments may be removed if you so desire.
#
# Usage:
#       uutry [-x#] systemname
# where '-x#' has the value [0-9], higher values providing more detail

#
# The following variables should be gropped from the configuration
# files rather then being hard coded here.
#
Spool=/usr/spool/uucp
Lib=/usr/local/lib/uucp
Status=$Spool/.Status
Debug=$Spool/Debug
Uucico=$Lib/uucico
#
# Default option values
#
x="-x5"
s=""

for i in $* ; do
    case $i in
        -x*) x="$i" ;;
        *) s="$i" ;;
    esac
done

if [ x$s != x ]; then
    rm -f $Status/$s
    $Uucico -r1 $x -s$s &
    >$Debug
    tail -f $Debug
else
    echo "Usage: uutry systemname"
    exit 1
fi
OpenPOWER on IntegriCloud