home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Fred Fish Collection 1.5
/
ffcollection-1-5-1992-11.iso
/
ff_disks
/
300-399
/
ff319.lzh
/
CNewsSrc
/
cnews.orig.lzh
/
conf
/
queuelen.sub
< prev
next >
Wrap
Text File
|
1989-06-27
|
473b
|
25 lines
#! /bin/sh
# Find size of current queue of news outbound to $1. Old-uucp version.
# =()<. ${NEWSCONFIG-@<NEWSCONFIG>@}>()=
. ${NEWSCONFIG-/usr/lib/news/bin/config}
PATH=$NEWSCTL/bin:$NEWSBIN:$NEWSPATH ; export PATH
umask $NEWSUMASK
cd /usr/spool/uucp
grade=d
case "$1" in
?|??|???|????|?????|??????|???????) site="$1" ;;
*) site=`expr "$1" : '^\(.......\).*'`
esac
if test -d C.
then
cd C.
ls | egrep "^C\.$site$grade....\$" | wc | awk '{print $1}'
else
echo 0
fi