🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #80006

Re: Cron job for pullnews

#80006
From: Ray Banana
Date: Sat, 10 Jan 2009 09:10
41 lines
3207 bytes
Thus spake "John F. Morse" <xanadu.bbs@example.invalid>
 
> If I want pullnews to run more often than once an hour, say, every 30
> minutes, how would I create that? Perhaps additional lines in the
> /etc/cron.d/ file, such as:
> 15 * * * * news /usr/lib/news/bin/pullnews
> 45 * * * * news /usr/lib/news/bin/pullnews
>
> Or would something like the following be more proper?:
>
> 15,45 * * * * news /usr/lib/news/bin/pullnews
>
> Or even:
>
> */15 * * * * news /usr/lib/news/bin/pullnews

*/30, if it's supposed to run every 30 minutes ;-)
Apart from that, I would prefer this last form, as it's syntax is the
most compact.

> I don't need an e-mail message every time pullnews runs. Does the -q
> flag stop the e-mail generation?

As cron will generate a mail if the script produces any output, I would
pipe STDOUT to /dev/null. This way you will only receive a mail if
pullnews writes to STDERR, which may be desirable.

> What would you suggest I use to push this group back to Usenet via my
> ISP? Pullnews(8) states:

You will certainly only want to feed back the articles that originate
from your server. Hence, I would set up a feed for this group in
newsfeeds, using the O flag, and feed it to your ISP using newsx. Maybe
you should use newsx for retrieving articles as well, as it can do a
two-way synchronisation with one configuration and one invocation. 
It may be a bit more complicated to configure than pullnews, but it's
certainly worth looking at. 

-- 
Time flies like an arrow, fruit flies like a Banana.
http://news.motzarella.org
Technical Details
Message-ID: <80iqonzfu9.fsf@banana.shacknet.nu>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!newsfeed.freenet.de!newsfeed0.kamp.net!newsfeed.kamp.net!feeder.erje.net!news.motzarella.org!banana.shacknet.nu!motzarella.org!not-for-mail
References: <gk9bgv$1m0$1@optima7.xanadu-bbs.net> <807i53r7nl.fsf@banana.shacknet.nu> <gk9iu6$3nh$1@optima7.xanadu-bbs.net>

Show Full Headers
Complete Article Headers
Message-ID: <80iqonzfu9.fsf@banana.shacknet.nu>
Subject: Re: Cron job for pullnews
Date: Sat, 10 Jan 2009 10:10:38 +0100
From: Ray Banana <rayban@banana.shacknet.nu>
References: <gk9bgv$1m0$1@optima7.xanadu-bbs.net> <807i53r7nl.fsf@banana.shacknet.nu> <gk9iu6$3nh$1@optima7.xanadu-bbs.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!newsfeed.freenet.de!newsfeed0.kamp.net!newsfeed.kamp.net!feeder.erje.net!news.motzarella.org!banana.shacknet.nu!motzarella.org!not-for-mail
Newsgroups: news.software.nntp
Organization: A noiseless patient spider
Lines: 41
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Trace: news.eternal-september.org
 U2FsdGVkX18PrwE62pRKyNWkOtuhqTH6mLTCTGS1VcA4B7tZHW99UFbS05RDkksxvxPUS9clU0YLsj/vFvZYb91OaIurULmcAK4X+4xKsoXBiUIoQXkrI/op6/fHv6R/htBgIEEaERE=
X-Complaints-To: abuse@banana.shacknet.nu
X-Auth-Sender: U2FsdGVkX19hUPdTh1xj5f70Y7qT3qLJvQV6e1QhghdtB8nN9ubX/w==
Cancel-Lock: sha1:2r9hQD4SgKM7beZlAfhBgrqqDU8=
 sha1:jpKBcBzHZr5Z75WRtOj777LA4mA=
User-Agent: Plonkenlights
X-PGP-Sig: 2.6.3ia Subject,Message-ID,Date,From,User-Agent
 iQCVAwUBSWhmQBFgDSXFGJ/lAQEfLQQAh+P2O22H9JsG48GjR6He5nAf3KM2C2w9
 BWDFXZS+w+CHRqaMSWLQo0WfY+pLZ5QlgOTre3RtPCENRicALvFInOxNF3MQkY+Y
 RHuF2bPWAvOPeqX8Jz41POuUPXcSTh/LVP05oBfEeY5EkMe5Pf+zpYFyXF80y+ze
 MnISsz34+xE= =wRDY
X-Attribution: Ray Banana