🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #36923

Re: Submitting to Freenix

#36923
From: Brad Knowles
Date: Thu, 22 Apr 1999 00:00
107 lines
4585 bytes
In article <1r90blvgur.fsf@haey.ifi.uio.no>, Kjetil Torgrim Homme
<kjetilho@haey.ifi.uio.no> wrote:

> I run this from cron:
> 0 4 13 * *      /news/dbin/make-inpaths paths-1
> 0 4 27 * *      /news/dbin/make-inpaths paths-2
> 0 6 28 * *      /news/dbin/send-inpaths

    I've just added this line to my cron file for the "news" user:

20 23 28 * *    (cd /news/adm; for i in monthly.*; do ./$i; done) >>/var/log/new
s/daily.log 2>&1

    I've added this file in /news/adm:

#! /bin/sh
# monthly.inpaths -- summarize inpaths data and mail off
zcat /news/path/*.gz |
        /news/local/inpaths -p -l newsfeed.doma.in |
        mail pathsurvey@top1000.org,news@newsfeed.doma.in

    My /news/admin/daily.dclean now looks like this (I added the one-line
call to make-inpaths):

#!/bin/sh
#

echo "`date` - $0 BEGIN"

cd /news

# cleanout spool files that do not exist
# in the history file
#
# note: >= V1.08, dclean does not do anything any
# more, but may be restored in a future release.

/news/dbin/dclean -q -r

# Pull out path headers in the spool files

/news/local/make-inpaths newsfeed.doma.in

# remove any empty directories
#
if [ -d /news/spool/news ]; then
    cd /news/spool/news
    rmdir D.???????? 2> /dev/null
fi

echo "`date` - $0 END"

    I've added this file in /news/local:

#!/bin/sh -vx
# make-inpaths -- Pull "Path:" header information out of Diablo news spool
#               files and stuff those off to the side to be gathered and
#               summarized once per month, then mailed off
#
# Author: Brad Knowles <brad@shub-internet.org>
#   Date: Thu Apr 22 12:30:23 CEST 1999
#
# This program is provided without any warranty whatsoever!
# USE AT YOUR OWN RISK!!!

NOW=`date '+%Y%m%d'`

find /news/spool/news -name B\* -print | xargs cat -s | grep "^Path: $1" |
gzip --fast > /news/path/$NOW.gz



    I do all this because we clean out our spool files once per day (as
you can see), so we need to collect the data just before we clean them
out.


    Unfortunately, I've got this funny feeling that we're still missing
some news spool files (and therefore not collecting all the necessary
data), because I had to go back in and add the "-s" argument to cat in
order to keep it quiet and not complain about spool files that have
disappeared.

    I'm guessing that with this configuration, the "maxspool" parameter in
/news/diablo.config should be set to "1", and then Diablo will (of course)
need to be stopped and restarted, since this file is not re-read on
modification.  I'll give that a try and let you know tomorrow if I appear
to have missed anything.


    And, of course, you'll need to get, compile, and install
<http://www.freenix.org/reseau/top1000/inpaths-noll.tar.gz> yourself, and
store the binary for it in /news/local.  ;-)



P.S.  If you use the stuff I've done, keep in mind that you need to change
"newsfeed.doma.in" to match whatever is appropriate for your site.

-- 
Brad Knowles <brad@shub-internet.org> <http://www.shub-internet.org/brad/>
    <http://wwwkeys.pgp.net:11371/pks/lookup?op=get&search=0xE38CCEF1>

Are you looking for a news feed from a site in the Freenix Top 130?
If so, contact me via private e-mail for details.

Technical Details
Message-ID: <brad-2204991231420001@brad.techos.skynet.be>
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
References: <m3vhf1q7y5.fsf@sgifford.tir.com> <7f5es0$66v$1@east44.supernews.com> <990418090056.AA26878@dojo.mi.org> <7fdeep$7me$1@east44.supernews.com> <990419063652.AA8296@dojo.mi.org> <FAFKu0.n29@spcuna.spc.edu> <brad-1904991242040001@brad.techos.skynet.be> <FAFq62.AJs@spcuna.spc.edu> <brad-1904991435180001@brad.techos.skynet.be> <FAGBK9.8yE@spcuna.spc.edu> <brad-1904992214180001@brad.techos.skynet.be> <FAGLwC.IpM@spcuna.spc.edu> <371DD36A.3A068659@online.be> <brad-2104991707130001@brad.techos.skynet.be> <brad-2104992052530001@brad.techos.skynet.be> <1r90blvgur.fsf@haey.ifi.uio.no>

Show Full Headers
Complete Article Headers
Message-ID: <brad-2204991231420001@brad.techos.skynet.be>
Subject: Re: Submitting to Freenix
Date: Thu, 22 Apr 1999 00:00:00 +0000
From: brad@shub-internet.org (Brad Knowles)
References: <m3vhf1q7y5.fsf@sgifford.tir.com> <7f5es0$66v$1@east44.supernews.com> <990418090056.AA26878@dojo.mi.org> <7fdeep$7me$1@east44.supernews.com> <990419063652.AA8296@dojo.mi.org> <FAFKu0.n29@spcuna.spc.edu> <brad-1904991242040001@brad.techos.skynet.be> <FAFq62.AJs@spcuna.spc.edu> <brad-1904991435180001@brad.techos.skynet.be> <FAGBK9.8yE@spcuna.spc.edu> <brad-1904992214180001@brad.techos.skynet.be> <FAGLwC.IpM@spcuna.spc.edu> <371DD36A.3A068659@online.be> <brad-2104991707130001@brad.techos.skynet.be> <brad-2104992052530001@brad.techos.skynet.be> <1r90blvgur.fsf@haey.ifi.uio.no>
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: 469497528
X-Complaints-To: abuse@skynet.be
X-Trace: news0.skynet.be 924777115 19074 195.238.1.121 (22 Apr 1999 10:31:55 GMT)
Organization: Shub-Internet
X-URL: http://www.shub-internet.org/
NNTP-Posting-Date: 22 Apr 1999 10:31:55 GMT
Newsgroups: news.software.nntp