🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
7 messages
7 total messages Started by Woodrow Sawyer Wed, 02 Dec 1998 00:00
Doing a "suck" newsfeed using the suck package
#33448
Author: Woodrow Sawyer
Date: Wed, 02 Dec 1998 00:00
28 lines
1377 bytes
OK, so I'm a clueless newbee. Just shoot me.

I need to do a sucking newsfeed, errrr, pull a newsfeed.
Not a full feed, but a few hundred groups, a few meg per day.
I am running Debian 1.3.1 with CNews. I have NNTP that runs.

I installed the Suck package from the Debian CD.
Now what?
The only documentation I could find is the man page.
Not much help there. I dont seem to be able to connect
what the author intended in the man page with what
I know about CNews.
I could not find a HOWTO on suck.

I need a little help.
Anyone willing to post a HowTo?
Anyone willing to gimme just a little help getting
started here and I'll write the HowTo.

Post here or respond via email.

Regards,
  Woody.




Re: Doing a "suck" newsfeed using the suck package
#33484
Author: Egil Kvaleberg
Date: Thu, 03 Dec 1998 00:00
19 lines
1374 bytes
On 2 Dec 1998, Woodrow Sawyer wrote:

> Anyone willing to post a HowTo?

Sorry, don't know very much about "suck", but you'll find a step-by-step 
guide here for newsx and Cnews (which does the same thing, I gather):

	http://www.kvaleberg.com/newsx.html

	http://www.kvaleberg.com/ISP-Hookup-HOWTO.html

Egil
-- 
Email: egil@kvaleberg.no  Voice: +47 22523641, 92027705 Fax: +47 22525899
Snail: Egil Kvaleberg, Husebybakken 14A, 0379 Oslo, Norway
URL:   http://www.kvaleberg.com/           PGP: finger:egil@kvaleberg.com


Re: Doing a "suck" newsfeed using the suck package
#33486
Author: Karl Kleinpaste
Date: Thu, 03 Dec 1998 00:00
53 lines
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

Re: Doing a "suck" newsfeed using the suck package
#33492
Author: Fluffy
Date: Thu, 03 Dec 1998 00:00
23 lines
1563 bytes
Woodrow Sawyer <woodrows@birdsong.sbay.com> wrote:
> OK, so I'm a clueless newbee. Just shoot me.

*BANG*

> I need to do a sucking newsfeed, errrr, pull a newsfeed.

You had it right the first time, this kind of sucks.

> Not a full feed, but a few hundred groups, a few meg per day.

A few hundred groups are too many to pull.  You really want to arrange
with your upstream for a real newsfeed, or at least use one of the
smarter proxies like nntpcache.

> The only documentation I could find is the man page.

The FAQ etc. are at <URL:http://home.att.net/~bobyetman/> but first
have a talk with your upstream.  They would probably be much happier
to work out something with a real NNTP or UUCP feed.


Re: Doing a "suck" newsfeed using the suck package
#36074
Author: root
Date: Sun, 21 Mar 1999 00:00
19 lines
1528 bytes
Woodrow Sawyer <woodrows@birdsong.sbay.com> wrote:
: OK, so I'm a clueless newbee. Just shoot me.

: I need to do a sucking newsfeed, errrr, pull a newsfeed.
: Not a full feed, but a few hundred groups, a few meg per day.
: I am running Debian 1.3.1 with CNews. I have NNTP that runs.

: I installed the Suck package from the Debian CD.
: Now what?
: The only documentation I could find is the man page.
: Not much help there. I dont seem to be able to connect
: what the author intended in the man page with what

It's something like:
suck news.server --active --batch_rnews batchfile
Which will read news.server's groups, based on your active file, and
put it in a format you can feed into rnews.

Re: Doing a "suck" newsfeed using the suck package
#36091
Author: Gavin McCord
Date: Mon, 22 Mar 1999 00:00
65 lines
2883 bytes
root@mauve.demon.co.uk wrote:

> Woodrow Sawyer <woodrows@birdsong.sbay.com> wrote:
> : OK, so I'm a clueless newbee. Just shoot me.
>
> : I need to do a sucking newsfeed, errrr, pull a newsfeed.
> : Not a full feed, but a few hundred groups, a few meg per day.
> : I am running Debian 1.3.1 with CNews. I have NNTP that runs.
>
> : I installed the Suck package from the Debian CD.
> : Now what?
> : The only documentation I could find is the man page.
> : Not much help there. I dont seem to be able to connect
> : what the author intended in the man page with what
>
> It's something like:
> suck news.server --active --batch_rnews batchfile
> Which will read news.server's groups, based on your active file, and
> put it in a format you can feed into rnews.

Here's a little script I use:

#!/bin/sh
su news -c 'SM=/home/usenet; \
suck news.demon.co.uk -hl localhost \
-dd $SM/var -dm $SM/articles -dt $SM/tmp \
-HF /var/news/etc/history -bp -c'

The flags mean

-hl  --  The localhost
-dd --  Dir where the sucknewsrc file is (see below)
-dm--  Dir where articles are stored before sending to INN server
-dt --   Other temporary files
-HF--  Where the history file is located
-bp --  Command to batch up news articles and post to INN server
-c -- clean up i.e. update sucknewsrc file

NB: dd and dm dirs must be different or the sucknewsrc file will be
deleted along with the articles when posting to INN server.

sucknewsrc:
This file has the following format

newsgroup article-number max-articles
eg

news.software.nntp 45454 100

The second field can also be a negative number, if
you don't know the current article number, eg

news.software.nntp -50 100

where the newest 50 messages are downloaded.
The 3rd field simply gives a maximum to the number of messages
that can be downloaded at one time - it's optional.

This isnt exhaustive - look at the man pages again for
more details.

Hope this helps. BTW, I'm using suck 4.0.


Re: Doing a "suck" newsfeed using the suck package
#36167
Author: Frank Slootweg
Date: Wed, 24 Mar 1999 00:00
22 lines
1332 bytes
Woodrow Sawyer <woodrows@birdsong.sbay.com> wrote:
> OK, so I'm a clueless newbee. Just shoot me.
>
> I need to do a sucking newsfeed, errrr, pull a newsfeed.
> Not a full feed, but a few hundred groups, a few meg per day.
> I am running Debian 1.3.1 with CNews. I have NNTP that runs.
>
> I installed the Suck package from the Debian CD.
> Now what?
> The only documentation I could find is the man page.
> Not much help there.

  It is probably best to get the whole package from the author's site:
http://home.att.net/~bobyetman/index.html

  Then you will have the README, manual pages and examples. I think for
CNews, you will want to use/look_at sample/get.news.rnews (and the other
sample/* examples).

  I am a happy user of suck 3.9.2 (on HP-UX 10.20).

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