🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
1 messages
1 total messages Started by Jon Bell Sun, 01 May 1994 19:57
Re: Which newsreader can use command mode
#8839
Author: Jon Bell
Date: Sun, 01 May 1994 19:57
38 lines
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
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads