🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: de.admin.news.misc
Article #159

Re: "Alte" News nochmal bereitstellen ?

#159
From: Thomas Neumann
Date: Mon, 05 Oct 1992 03:13
40 lines
1808 bytes
In article <Bv969A.IsF@pfm.rmt.sub.org> bernd@pfm.rmt.sub.org (Bernd  
Hennig) writes:
> 
> Gibt es eigentlich ein "einfache" Moeglichkeit, bereits
> gebatchte News (die auch schon uebermittelt wurden),
> nochmal bereitzustellen (d.h. in CNews das  
/usr/spool/news/out.going/kiste/togo
> nochmal zu "fuellen") ?????

Zwei Voraussetzungen:

1) GNU find
2) Zugriff auf das Newsspool-Directory (also kein NNTP)

#!/bin/sh
#
# (@#) rebatch.sh
#
# usage: rebatch site newsgroup [newsgroup ...]

find=/usr/local/bin/find                # GNU find
spool=/usr/spool/news

[ $# -ge 2 ] || {
        echo "`basename $0` site newsgroup [newsgroup ...]" 2>&1
        exit 1
}

site=$1; shift

for ng in "$@"; do
  dir="$spool/`echo $ng | tr . /`"
  if [ -d $dir ]; then
    $find $dir -follow -type f -printf "%p %s\n"  
>>$spool/out.going/$site/togo
  fi
done


bye -- Thomas
Technical Details
Message-ID: <repost.167568@hactar.hanse.de>
Path: arc1-ca.pugleaf.net!sparky!uunet!gatech!darwin.sura.net!spool.mu.edu!umn.edu!math.fu-berlin.de!unidui!rrz.uni-koeln.de!Germany.EU.net!news.Hamburg.Germany.EU.net!abqhh!wolfhh.hanse.de!hactar!hactar.hanse.de!news
References: <Bv969A.IsF@pfm.rmt.sub.org>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!gatech!darwin.sura.net!spool.mu.edu!umn.edu!math.fu-berlin.de!unidui!rrz.uni-koeln.de!Germany.EU.net!news.Hamburg.Germany.EU.net!abqhh!wolfhh.hanse.de!hactar!hactar.hanse.de!news
From: tom@smart.bo.open.de (Thomas Neumann)
Newsgroups: de.admin.news.misc
Subject: Re: "Alte" News nochmal bereitstellen ?
Message-ID: <repost.167568@hactar.hanse.de>
Date: Mon, 5 Oct 1992 04:13:18 +0100
References: <Bv969A.IsF@pfm.rmt.sub.org>
Organization: News at smart
Followup-To: poster
Sender: news@hactar.hanse.de (de.admin.news -> de.admin.news.misc Reposter)
Lines: 41
Resent-Path: hactar!abqhh!wolfhh.hanse.de!public!flyer!open.de!teddy!germany!horga!ruhr.de!reswi!smart.bo.open.de!tom
Resent-Newsgroups: de.admin.news
Resent-Message-ID: <1992Oct2.152458.23251@smart.bo.open.de>
Resent-Date: Fri, 2 Oct 1992 15:24:58 GMT
Resent-Sender: tom@smart.bo.open.de (Thomas Neumann)