Article View: news.software.b
Article #6980Transfer selected articles to remote news hierarchy
From: Ralph Russo
Date: Mon, 19 Feb 1990 16:21
Date: Mon, 19 Feb 1990 16:21
49 lines
2019 bytes
2019 bytes
I have access to a full set of newsgroups at work but, alas, my system
at home receives only a small handfull of groups. The following minor
tweaks allow me to transfer selected articles from work to home for
installation into my home news hierarchy.
This little hack modifies the "Save article" function of rn to save
articles as a news batch. The batch can then be manually fed to rnews
on another system for installation into the target machine's news
system.
It requires no modification to either machine's news software.
WARNING: Make the required changes to the target machine's sys file
unless you want this stuff unnecessarily forwarded...
Put the following lines in your environment:
> RNINIT='-N'
> NORMSAVER='~/bin/batch.saver %A %P %c %a %B %C "%b"'
^^^^^^^^^^^^^^^^^
Customize this path!
Install this simple script into ~/bin/batch.saver (or wherever):
> #!/bin/sh
> #
> # Arguments:
> # 1 Full name of article (%A)
> # 2 Public news spool directory (%P)
> # 3 Directory of current newsgroup (%c)
> # 4 Article number (%a)
> # 5 Where in article to start (%B)
> # 6 Newsgroup name (%C)
> # 7 Save destination (%b)
>
> export PATH || (echo "OOPS, this isn't sh. Desperation time. I will feed myself to sh."; sh $0; kill $$)
>
> BYTES=`ls -l $1 | awk '{print $5}'`
>
>
> ( echo "#! rnews ${BYTES}"
> cat $1 ) >> $7
>
When reading news with rn, the "s" function will create news batches
in $HOME/News/... These batches are ready for piping into rnews on the
target machine.
Ralph Russo
Technical Details
Message-ID:
<34475@cci632.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!utstat!helios.physics.utoronto.ca!jarvis.csri.toronto.edu!cs.utexas.edu!uwm.edu!psuvax1!rutgers!rochester!rit!cci632!rmrShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utstat!helios.physics.utoronto.ca!jarvis.csri.toronto.edu!cs.utexas.edu!uwm.edu!psuvax1!rutgers!rochester!rit!cci632!rmr From: rmr@cci632.UUCP (Ralph Russo) Newsgroups: news.software.b Subject: Transfer selected articles to remote news hierarchy Keywords: rn cnews Message-ID: <34475@cci632.UUCP> Date: 19 Feb 90 16:21:56 GMT Organization: CCI, Communications Systems Division, Rochester, NY Lines: 49