Path: utzoo!censor!becker!bdb From: bdb@becker.UUCP (Bruce Becker) Newsgroups: news.admin Subject: Re: newgroup & rmgroup (was: Re: Cabals, Committees, Voting, ad nauseum) Message-ID: <421@becker.UUCP> Date: 17 Apr 89 07:26:56 GMT References: <647@ultb.UUCP> <28784@apple.Apple.COM> <22065@dhw68k.cts.com> Reply-To: bdb@becker.UUCP (Bruce Becker) Organization: G. T. S., Toronto, Ontario Lines: 48 In article <22065@dhw68k.cts.com> david@dhw68k.cts.com (David H. Wolfskill) writes: > [...] >The above is all the more reason news admins need to pay attention to >the "Distribution:" specification for control messages that are intended >for their sites. >-- >David H. Wolfskill >uucp: ...{spsd,zardoz,felix}!dhw68k!david InterNet: david@dhw68k.cts.com I have written 2 simple shell scripts for the purpose of implementing the 'rmgroup" & 'newgroup' control functions. The scripts default to "local" for distribution. I have included them below for the convenience of anyone who needs such things... --------- 8< --------- 8< --------- 8< --------- 8< --------- 8< --------- # rmgroup control function DIST=local if [ "$1" = "-d" ]; then { shift; DIST=$1; shift; } fi if [ -z "$1" ]; then echo 'usage "rmgrp [-d distribution] newsgroup"' exit 1 fi /usr/lib/news/inews -n $1.ctl -c rmgroup $1 -d $DIST -a $LOGNAME@`uuname -l` --------- 8< --------- 8< --------- 8< --------- 8< --------- 8< --------- # newgroup control function DIST=local MOD= if [ "$1" = "-d" ]; then { shift; DIST=$1; shift; } fi if [ "$1" = "-m" ]; then shift; MOD='moderated' if [ "$1" = "-d" ]; then { shift; DIST=$1; shift; } fi fi if [ -z "$1" ]; then echo 'usage "newgroup [-m] [-d distribution] newsgroup"' exit 1 fi /usr/lib/news/inews -n $1.ctl -c newgroup $1 $MOD -d $DIST -a $LOGNAME@`uuname -l` -- O . Bruce Becker Toronto, Ont. o _///_ // Internet: bdb@becker.UUCP, bruce@gpu.utcs.toronto.edu <`)= _<< BitNet: BECKER@HUMBER.BITNET \\\ \\ "The Net *has* died, and we've taken its place" - Altzilla