Article View: news.software.readers
Article #8839Re: Which newsreader can use command mode
From: Jon Bell
Date: Sun, 01 May 1994 19:57
Date: Sun, 01 May 1994 19:57
38 lines
2115 bytes
2115 bytes
In article <2ppmov$hn3@ctsc.hkbc.hk>, PM Wong <s11976@ctsc.hkbc.hk> wrote:
>We have the need to post a lot of articles (stored in files)
>to a particular newsgroup.
If you can prepare each file in advance with a "Newsgroups:" line and a
"Subject:" line, you should be able to feed them directly to C News or
INN, bypassing the newsreader. For example, with the latest version of C
News you can use
injnews < file.name
With older versions you use "inews"; I don't know about INN. It's easy to
write a shell script which takes all the files in a directory and feeds
them one at a time to "injnews" or "inews". Here's one I wrote a few days
ago (warning... not tested extensively yet!):
#!/bin/sh
#------------------------------------------------------------------------
# autopost - post all files in a specified directory as news articles.
#
# Usage: autopost dir
#
# Each file in the specified directory must be suitable for posting, with
# a header containing at least a "Newsgroups:" line and a "Subject:" line.
#-------------------------------------------------------------------------
dir=$1
cd $dir
files="`ls`"
for file in $files
do
echo "Posting $file ..."
injnews < $file
done
--
Jon Bell <jtbell@presby.edu> Presbyterian College
Dept. of Physics and Computer Science Clinton, South Carolina USA
Technical Details
Message-ID:
<Cp53Fn.IJr@presby.edu>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.readers.mbox.zip!bga.com!news.sprintlink.net!sundog.tiac.net!usenet.elf.com!rpi!usc!howland.reston.ans.net!europa.eng.gtefsd.com!darwin.sura.net!presby.edu!jtbellReferences:
<2ppmov$hn3@ctsc.hkbc.hk>Show Full Headers
Complete Article Headers
Message-ID: <Cp53Fn.IJr@presby.edu> Subject: Re: Which newsreader can use command mode Date: Sun, 1 May 1994 19:57:22 GMT From: jtbell@presby.edu (Jon Bell) References: <2ppmov$hn3@ctsc.hkbc.hk> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.readers.mbox.zip!bga.com!news.sprintlink.net!sundog.tiac.net!usenet.elf.com!rpi!usc!howland.reston.ans.net!europa.eng.gtefsd.com!darwin.sura.net!presby.edu!jtbell Newsgroups: news.software.readers,comp.unix.aix Organization: Presbyterian College, Clinton, South Carolina USA Lines: 38