🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #851

Re: Need to send articles to a new site

#851
From: Neil Rickert
Date: Fri, 14 Dec 1990 19:27
34 lines
2003 bytes
In article <1990Dec14.162617.5428@ssd.kodak.com> dcox@tweety.ssd.kodak.com (Don Cox (253-7121)) writes:
>How do I send all of the articles available in a select newsgroup to
>...
>newsgroup to them.  I can (and did) create a file called 
>machinename.abc.def.com in /var/spool/news/out.going
>and added a line for each article ...  such as:
>
>/usr/spool/news/ours/general/1
>/usr/spool/news/ours/general/2
>...
>/usr/spool/news/ours/general/8
>etc.
>
>I tried a wildcard (*) instead of an article number, but it didn't
>work.  How does one send hundreds of articles to a site without
>typing in hundreds of entries?
>
 Using the cshell, I would just do something like:

  foreach article ( [0-9]* )
  echo $cwd/$article >> $batchfile
  end

 Similar command sequences exist for other reasonable shells.

 Combining this with find, and a relatively simple sed filter
you should be able to do the whole news spooling directory with
very little effort.
-- 
=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=
  Neil W. Rickert, Computer Science               <rickert@cs.niu.edu>
  Northern Illinois Univ.
  DeKalb, IL 60115.                                  +1-815-753-6940
Technical Details
Message-ID: <1990Dec14.192717.21836@mp.cs.niu.edu>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp!utzoo!utstat!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!julius.cs.uiuc.edu!ux1.cso.uiuc.edu!mp.cs.niu.edu!rickert
References: <1990Dec14.162617.5428@ssd.kodak.com>

Show Full Headers
Complete Article Headers
Message-ID: <1990Dec14.192717.21836@mp.cs.niu.edu>
Subject: Re: Need to send articles to a new site
Date: Fri, 14 Dec 1990 19:27:17 +0000
From: rickert@mp.cs.niu.edu (Neil Rickert)
References: <1990Dec14.162617.5428@ssd.kodak.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp!utzoo!utstat!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!julius.cs.uiuc.edu!ux1.cso.uiuc.edu!mp.cs.niu.edu!rickert
Newsgroups: news.software.b,news.software.nntp,news.newusers.questions
Distribution: na
Organization: Northern Illinois University
Lines: 33