Article View: news.software.nntp
Article #33486Re: Doing a "suck" newsfeed using the suck package
From: Karl Kleinpaste
Date: Thu, 03 Dec 1998 00:00
Date: Thu, 03 Dec 1998 00:00
53 lines
2321 bytes
2321 bytes
Woodrow Sawyer <woodrows@birdsong.sbay.com> writes:
> I installed the Suck package from the Debian CD.
> Now what?
> I could not find a HOWTO on suck.
> I need a little help.
Below is a slightly modified version of my shell script wrapper around
suck. It runs 3x/hr. I run INN, so you won't have innxmit, but you
can figure out something equivalent to do for C News.
However, the observation previously made about too many groups being
sucked is worth contemplation.
--karl
01,21,41 * * * * /home/news/suck/suck/suck.sh >> /home/news/suck/tmp/.log 2>&1
#!/bin/sh
# suck.sh
PATH=$PATH:/usr/lib/news/bin
echo ----------------------------------------------------------------
umask 2
WORK=/home/news/suck
SCRIPT=$WORK/suck/suck.sh # this script
SUCK=$WORK/suck/suck # suck binary
TMP=/home/news/suck/tmp
INNXMIT=/usr/lib/news/bin/innxmit
# Server list has matching port list in $*.
SERVERLIST="suckhost1 suckhost2"
set -- 119 7878 # nonstandard NNTP port for 2nd host.
cd $WORK
# Lock ourselves down with brute force.
chmod -x $SCRIPT
# Go get a pile of news.
for server in $SERVERLIST
do
port=$1
BATCH=$WORK/In.$server$$
time $SUCK $server -N $port -bi $BATCH -dt $TMP -dm $TMP -dd . -p .$server -c -H
if [ -f $BATCH ]
then
time $INNXMIT localhost $BATCH
rm -f $BATCH
( cd $TMP ; rm -f *.$server )
fi
# Next host.
shift # port selection, to go with server.
done
# Unlock.
chmod +x $SCRIPT
exit 0
Technical Details
Message-ID:
<vxk3e6xgnj2.fsf@beaver.jprc.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mailReferences:
<36660CDA.28152172@birdsong.sbay.com>Show Full Headers
Complete Article Headers
Message-ID: <vxk3e6xgnj2.fsf@beaver.jprc.com>
Subject: Re: Doing a "suck" newsfeed using the suck package
Date: Thu, 03 Dec 1998 00:00:00 +0000
From: Karl Kleinpaste <karl@justresearch.com>
References: <36660CDA.28152172@birdsong.sbay.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail
X-Deja-AN: 418293941
X-Face: "5(T0tZd{6}pd~YzBG8O/*EW,.]6]@`m^e;fv65W^Y&=d"M\1H}>T~4_.kcDD.O~y3k)a6h R;Nmi>9|>Nm${2IpM0^RcUEa\jcq?KOP)C&~x51l~zCHTulL^_T|u0I^kB'z@]{`2YjQu
Organization: Justsystem Pittsburgh Research Center
Mime-Version: 1.0
User-Agent: Gnus/5.070062 (Pterodactyl Gnus v0.62) XEmacs/20.4 (Emerald)
Newsgroups: news.software.nntp