jbuck@epimass.UUCP (Joe Buck) (12/13/86)
Eunice does not support the '[' synonym for test (and you can't
name a file '[' on Eunice in any case). Furthermore, ed writes a
file out in VMS format instead of Unix format, so we must invoke
vmstounix on "active" once we're done. Here's a revised version.
------------------------------------------------------------------------------
: '@(#)rmgroup.sh (from 1.6; modified for Eunice 12/12/86, epimass!jbuck)'
for group
do
echo "Removing newsgroup $group"
qgrp="`echo $group | sed 's/\./\\\./g'`"
if
grep -s "^$qgrp " /usr/lib/news/active
then
cat << E_O_F >/tmp/$$
/^$qgrp[ ]/d
w
q
E_O_F
ed - /usr/lib/news/active < /tmp/$$
ed - /usr/lib/news/newsgroups < /tmp/$$
dir=/usr/spool/news/"`echo $group | sed 's/\./\//g'`"
if test -d $dir
then
rm $dir/*
rmdir $dir
else
echo "$0: $dir: no spool directory" 2>&1
fi
else
echo "$0: $group: no such newsgroup" 2>&1
fi
done
rm -f /tmp/$$
/etc/vmstounix /usr/lib/news/active
exit 0
------------------------------------------------------------------------------
--
- Joe Buck {hplabs,ihnp4,sun}!oliveb!epimass!jbuck HASA (A,S)
Entropic Processing, Inc., Cupertino, Californiaedwards@uwmacc.UUCP (mark edwards) (12/15/86)
In article <721@epimass.UUCP> jbuck@epimass.UUCP (Joe Buck) writes: >Eunice does not support the '[' synonym for test (and you can't Which version of news do you have up ? What did you have to do to get it run ??? mark -- edwards@unix.macc.wisc.edu {allegra, ihnp4, seismo}!uwvax!uwmacc!edwards UW-Madison, 1210 West Dayton St., Madison WI 53706
jbuck@epimass.UUCP (Joe Buck) (12/18/86)
In article <683@uwmacc.UUCP> edwards@unix.macc.wisc.edu.UUCP (mark edwards) writes: > Which version of news do you have up ? What did you have to do to > get it run ??? Standard 2.11 news includes Eunice support (other than the rmgroup bug I just posted). You can blame me for this abomination. Get the latest news software from a neighbor or your friendly mod.sources archive, and follow the installation instructions (remembering to look at Appendix C). Now maybe if we can get enough Eunice sites on the net, comp.os.eunice might actually contain some useful information. -- - Joe Buck {hplabs,ihnp4,sun}!oliveb!epimass!jbuck HASA (A,S) Entropic Processing, Inc., Cupertino, California