🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

3 total messages Started by Joe Buck Fri, 12 Dec 1986 23:34
rmgroup doesn't work with Eunice; here's a fix
#7
Author: Joe Buck
Date: Fri, 12 Dec 1986 23:34
40 lines
1684 bytes
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, California
Re: rmgroup doesn't work with Eunice; here's a fix
#8
Author: mark edwards
Date: Mon, 15 Dec 1986 17:25
13 lines
955 bytes
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
Re: rmgroup doesn't work with Eunice; here's a fix
#9
Author: Joe Buck
Date: Thu, 18 Dec 1986 18:18
15 lines
1294 bytes
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
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads