|
|
1.1 root 1: # uutry: force a call to a remote system and display debug information
2: # to screen.
3:
4: X="-x3"
5: SYS=
6:
7: while [ $# -gt 0 ]
8: do
9: case $1 in
10:
11: -x) shift; X="-x$1"; shift;;
12: -x*) X=$1; shift;;
13: -?) echo "Usage: uutry [-xdebug_level] system_name"; exit 1;;
14: *) SYS=$1; shift ;;
15:
16: esac
17: done
18:
19: # do we have a system name ?
20:
21: if [ -z "$SYS" ]
22: then
23: echo "System name not secified"
24: exit 1
25: fi
26:
27:
28: # save old debug file and create empty one
29: mv /usr/spool/uucp/.Admin/audit.local /usr/spool/uucp/.Admin/audit.OLD
30: su uucp touch /usr/spool/uucp/.Admin/audit.local
31:
32: # now invoke uucico and tell the user to press the interrupt key when
33: # the transaction has completed.
34:
35: echo"
36: Invoking uucico to call $SYS with a debug level of $X. Press the
37: interrupt key to abort printing the debug information to the screen
38: or to exit this program when the call has completed.
39: "
40:
41: /usr/lib/uucp/uucico -S$SYS $X &
42:
43: tail -f /usr/spool/uucp/.Admin/audit.local
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.