From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/43938 Path: main.gmane.org!not-for-mail From: Karl Kleinpaste Newsgroups: gmane.emacs.gnus.general Subject: Re: [inn] How to have more than one server Date: Tue, 19 Mar 2002 18:49:08 -0500 Sender: owner-ding@hpc.uh.edu Message-ID: References: NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: main.gmane.org 1016581872 12505 127.0.0.1 (19 Mar 2002 23:51:12 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 19 Mar 2002 23:51:12 +0000 (UTC) Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 16nTNn-0003Fb-00 for ; Wed, 20 Mar 2002 00:51:11 +0100 Original-Received: from sina.hpc.uh.edu ([129.7.128.10] ident=lists) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 16nTMT-000545-00; Tue, 19 Mar 2002 17:49:49 -0600 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Tue, 19 Mar 2002 17:49:54 -0600 (CST) Original-Received: from sclp3.sclp.com (qmailr@sclp3.sclp.com [209.196.61.66]) by sina.hpc.uh.edu (8.9.3/8.9.3) with SMTP id RAA00565 for ; Tue, 19 Mar 2002 17:49:39 -0600 (CST) Original-Received: (qmail 4847 invoked by alias); 19 Mar 2002 23:49:24 -0000 Original-Received: (qmail 4842 invoked from network); 19 Mar 2002 23:49:21 -0000 Original-Received: from mesquite.slip.cs.cmu.edu (HELO cinnamon.vanillaknot.com) (128.2.207.11) by gnus.org with SMTP; 19 Mar 2002 23:49:21 -0000 Original-Received: (from karl@localhost) by cinnamon.vanillaknot.com (8.11.6/8.11.6) id g2JNn8a01546; Tue, 19 Mar 2002 18:49:08 -0500 Original-To: ding@gnus.org X-Face: "8-CgoYhiD_O!#(F%E=..0>QA_#WDy+]_XoAr)L]`-zjAc\d+nsFXq`=v_# =pVh#sP*K~j,0k9N}`E7jX"5+U?4/UIF1EE X-Face: "5(T0tZd{6}pd~YzBG8O/*EW,.]6]@`m^e;fv65W^Y&=d"M\1H}>T~4_.kcDD.O~y3k)a6 hR;Nmi>9|>Nm${2IpM0^RcUEa\jcq?KOP)C&~x51l~zCHTulL^_T|u0I^kB'z@]{`2YjQu In-Reply-To: (Harry Putnam's message of "Tue, 19 Mar 2002 10:05:18 -0800") Original-Lines: 14 User-Agent: Gnus/5.090006 (Oort Gnus v0.06) XEmacs/21.4 (Common Lisp, i686-pc-linux) Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:43938 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:43938 --=-=-= As others have observed, you external support to do what you want. I use suck; in fact, I use a very old version, just because I don't want to have to hassle with building it when what I have works just fine. Below are the two scripts I use for sucking news in to my systems and then for doing remote posting. Run them out of cron regularly. Embellish to taste. --=-=-= Content-Type: application/x-sh Content-Disposition: attachment; filename=suck.sh Content-Transfer-Encoding: quoted-printable #!/bin/sh # PATH=3D$PATH:/home/news/bin echo ---------------------------------------------------------------- umask 2 WORK=3D/home/news/suck SCRIPT=3D$WORK/suck/suck.sh SUCK=3D$WORK/suck/suck TMP=3D/home/news/suck/tmp RNEWS=3D/home/news/bin/rnews # Server list has matching port list in $*. SERVERLIST=3D"This.News.Source That.News.Source" set -- 119 119 # matched against SERVERLIST. cd $WORK # Lock ourselves down. chmod -x $SCRIPT # Go get a pile of news. for server in $SERVERLIST do # go get 'em. port=3D$1 BATCH=3D$WORK/In.$server$$ time $SUCK $server -N $port -bi $BATCH -dt $TMP -dm $TMP -dd . -p .$serve= r -c -H if [ -f $BATCH ] then cat $BATCH | xargs ls -l | awk '{ print $5 " " $9 }' | while read sz fn= ; do echo "#! rnews" "$sz" ; cat "$fn" ; done | $RNEWS -v rm -f $BATCH ( cd $TMP ; find . -type f -name \*.$server | xargs rm -f ) fi # Next host. shift # port selection, to go with host. done # Unlock. chmod +x $SCRIPT exit 0 --=-=-= Content-Type: application/x-sh Content-Disposition: attachment; filename=rpost.sh Content-Transfer-Encoding: quoted-printable #!/bin/sh # if [ "$#" -ne 1 ] ; then echo Usage: rpost.sh ServerName exit 1 fi SERVER=3D"$1" # PATH=3D$PATH:/home/news/bin umask 2 WORK=3D/home/news/suck SCRIPT=3D$WORK/suck/rpost.sh RPOST=3D$WORK/suck/rpost FILTER=3D$WORK/suck/filter FILTERFILE=3D$WORK/tmp/.filter OUTGOING=3D/home/news/spool/outgoing ARTICLES=3D/home/news/spool/articles # # Should we bother? if [ ! -s $OUTGOING/$SERVER -a ! -s $OUTGOING/$SERVER.rpost ] then exit 0 fi echo ---------------------------------------------------------------- cd $WORK # # Lock ourselves down. chmod -x $SCRIPT # # Prep batch. mv $OUTGOING/$SERVER $OUTGOING/$SERVER.hold ctlinnd -s flush $SERVER cat $OUTGOING/$SERVER.hold | while read smtoken x do sm -i $smtoken | sed -e 's;: ;/;' done >> $OUTGOING/$SERVER.rpost rm -f $OUTGOING/$SERVER.hold # # Shovel bits. $RPOST $SERVER -b $OUTGOING/$SERVER.rpost -d -p $ARTICLES -f $FILTER '$$'o= =3D$FILTERFILE '$$'i $FILTERFILE # # Unlock. chmod +x $SCRIPT exit 0 --=-=-=--