Listing 1: uuq program
:
#
# @(#) uuqstat v1.1 - Simple UUCP Queue Status Report
# Author : Frank Bicknell
# Modified by : Chris Hare
# Wizard's Grabbag, UNIX WORLD, March 1990
#
echo
#
# The sed(C) command will remove every second line and any lines which
# contain the word POLL as in (POLL)
#
uustat -a | sed -n '/^[^ ]/p' | sed '/POLL/d' |
awk 'BEGIN {
print "Remote Local Job"
print "System Direction Date - Time User ID "
print "-------- --------- ----------- -------- ------------"
}
{
if ( $3 == "S" )
direction = "Sending "
else
direction = "Receiving"
printf "%-8s %8s %11s %-8s %12s\n", $4, direction, $2, $5, $1
}'
echo
|