🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #38355

Re: SLRNPULL: many news hosts

#38355
From: John E. Davis
Date: Wed, 28 Jan 1998 00:00
92 lines
2174 bytes
On 25 Jan 1998 18:49:56 GMT, Rob <rbrowne@alphalink.com.au>
wrote:
>Root directory  /var/spool/news/ispXXX
>
>Currently you need to compile a new slrnpull with the new root directory.
>Then the root directory needs to be changed in .slrnrc, so slrn can read.

I do not believe this is true.  Simply use the -d slrnpull command
line option to specify a different news directory.  Here is a script
that I run that handles 2 servers:

#!/bin/sh
dir=/var/spool/news
umask 022
slrnpull="/home/john/bin/slrnpull"
servers="news.mit.edu news.fuller.edu"

usage="$0 [--no-expire] [--new-groups] [--expire-only] [--post]"

expire=1
new_groups=
expire_only=0
post=

while test X"$1" != X
do
  case "$1"
  in
    --no-expire)
       expire=0
       shift
       ;;

    --new-groups)  
       new_groups="--new-groups"
       shift
       ;;
       
    --expire-only)
       expire_only=1
       shift
       ;;

    --post)
       expire=0
       post="--post"
       shift
       ;;
       
    *)
       echo $usage
       exit 1
  esac
done

if [ $expire -ne 0 ]
then
   echo "`date`: starting expire"
   for s in $servers
   do
      # Before getting new articles, perform expiration.
      $slrnpull -d $dir/$s --expire
   done
fi

if [ $expire_only -ne 0 ]
then
  exit 0
fi

echo "`date`: starting ppp"

umask 022

if /usr/sbin/ppp-on
then
  for s in $servers
  do
    $slrnpull -d $dir/$s -h $s $new_groups $post
  done
  /usr/sbin/ppp-off
  echo "`date`: ppp off"
  exit 0
fi

echo "`date`: exiting with error"
exit 1



Technical Details
Message-ID: <slrn6crjq2.msi.davis@mygir.davis.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail
References: <6ag1gk$suo$2@news.alphalink.com.au>

Show Full Headers
Complete Article Headers
Message-ID: <slrn6crjq2.msi.davis@mygir.davis.net>
Subject: Re: SLRNPULL: many news hosts
Date: Wed, 28 Jan 1998 00:00:00 +0000
From: davis@space.mit.edu (John E. Davis)
References: <6ag1gk$suo$2@news.alphalink.com.au>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail
X-Deja-AN: 320076630
Organization: Center for Space Research
Newsgroups: news.software.readers