🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
2 messages
2 total messages Started by Richard E Stealey Fri, 09 Aug 1996 00:00
Automating checkgroups
#9999
Author: Richard E Stealey
Date: Fri, 09 Aug 1996 00:00
48 lines
1827 bytes

I am trying to get "doit" to work with checkgroups with no luck so
far.
(BTW, I am generating the control message locally, with 
Distribution set to local so I dont propagate the test control
message out, although I DID slip up once, sorry).


--------------------------------------------------------
With the command set to "mail", of course I get mail of the form:

If you want to process it, then feed the body of the
message into docheckgroups while running as the
"newsadm" userid:

................../docheckgroups <<-EOF-
rick.1  1




--------------------------------------------------------------
With the command set to "doit" I get mail of the form:

# The following newsgroups were missing and should be added.
#       rick.1
# You can do this by executing the command(s):
	ctlinnd newgroup rick.1 y 

--------------------------------------------------------------


I recognize the 2nd form of email output as being the shell script
that is produced when the docheckgroups command is executed.
What I want (and thought "doit" would do for me) is to have the
checkgroups executed in its entirety, updating the local server
completely.

Is there something I could do easily to get the checkgroups command to 
process completely?

Thanks for any help you could provide.

Rick


Re: Automating checkgroups
#10077
Author: Shane Castle
Date: Tue, 13 Aug 1996 00:00
76 lines
3465 bytes
In news.software.nntp, Richard E Stealey<res@cmprime.cis.att.com> wrote:

>What I want (and thought "doit" would do for me) is to have the
>checkgroups executed in its entirety, updating the local server
>completely.

I don't think anyone has implemented checkgroups to operate this way.
INN doesn't do it (its 'docheckgroups' script doesn't, anyway) and I
haven't heard of any others doing it.  I wouldn't want it to, ever, as
there are too many idiots out there issuing bogus control messages.

The output of the docheckgroups command can be read into the shell and
can update your active file via ctlinnd commands but it won't
automatically update your newsgroups file or your moderators file.  You
still must update those by hand.

Also be aware that there is a bug in the vanilla docheckgroups.  Patch
attached. (Original insisted on spaces between name and description.
Patch causes it to accept spaces or tabs.)

Of course, you could further modify docheckgroups to do what you
want it to...

--
Shane Castle             | "Perfection, then, is finally achieved, not
Boulder County Info Svcs | when there is nothing left to add, but when
Boulder CO USA           | there is nothing left to take away."
                         |                - Antoine de Saint-Exup�ry

----------docheckgroups.patch------------------------------------------
--- docheckgroups.orig	Wed Oct  5 07:14:53 1994
+++ docheckgroups	Thu Jun  6 15:50:51 1996
@@ -48,7 +48,7 @@
 	echo "# You can remove them by executing the commands:"
 	for i in `cat ${T}/$$remove` ; do
 	    echo "	ctlinnd rmgroup $i"
-	    ${EGREP} "^$i	" ${NEWSGROUPS} >>${T}/$$ngdel
+	    ${EGREP} "^$i[ 	]" ${NEWSGROUPS} >>${T}/$$ngdel
 	done
 	echo ''
     ) >>${T}/$$out
@@ -61,11 +61,11 @@
 	echo "# You can do this by executing the command(s):"
 	for i in `cat ${T}/$$add.unmod` ; do
 	    echo "	ctlinnd newgroup $i y ${FROM}"
-	    ${EGREP} "^$i	" ${T}/$$msg >>${T}/$$ngadd
+	    ${EGREP} "^$i[ 	]" ${T}/$$msg >>${T}/$$ngadd
 	done
 	for i in `cat ${T}/$$add.mod` ; do
 	    echo "	ctlinnd newgroup $i m ${FROM}"
-	    ${EGREP} "^$i	" ${T}/$$msg >>${T}/$$ngadd
+	    ${EGREP} "^$i[ 	]" ${T}/$$msg >>${T}/$$ngadd
 	done
 	echo ''
     ) >>${T}/$$out
@@ -78,7 +78,7 @@
 	echo "# You can correct this by executing the following:"
 	for i in `cat ${T}/$$ismod` ; do
 	    echo "	ctlinnd changegroup $i y"
-	    ${EGREP} "^$i	" ${T}/$$msg >>${T}/$$ngchng
+	    ${EGREP} "^$i[ 	]" ${T}/$$msg >>${T}/$$ngchng
 	done
 	echo ''
     ) >>${T}/$$out
@@ -91,7 +91,7 @@
 	echo "# You can correct this by executing the following:"
 	for i in `cat ${T}/$$notmod` ;do
 	    echo "	ctlinnd changegroup $i m"
-	    ${EGREP} "^$i	" ${T}/$$msg >>${T}/$$ngchng
+	    ${EGREP} "^$i[ 	]" ${T}/$$msg >>${T}/$$ngchng
 	done
 	echo ''
     ) >>${T}/$$out

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