Article View: news.software.readers
Article #30970Re: Command line posting in ANY newsreader
From: Ron Newman
Date: Sat, 08 Feb 1997 00:00
Date: Sat, 08 Feb 1997 00:00
36 lines
1847 bytes
1847 bytes
In article <5ddqv2$917@nntp1.ba.best.com>, kimdv@best.com (Kim DeVaughn) wrote:
> | Is there any UNIX newsreader out there that will let me post an
> | article NON-interactively: i.e. something like:
> |
> | [prompt]%<newsreader command> <newsgroup> <file>
>
> | I've looked at a lot of FAQs, manual pages etc, but nothing seems
> | appropriate. I'm pretty competent with shell scripting so I could
> | write something to set up the correct headers for the files if that
> | is necessary
>
> If posting is all you're looking for, you should be able to easily
> adapt Pnews (part of the trn distribution) to do that (and bypass
> the interactive stuff).
The command "inews -h file" will non-interactively post the contents
of "file" to your NNTP server. The article must contain
properly-formatted headers, including at the very least "Newsgroups:" and
"Subject:" , with
a blank line separating the headers from the body text.
It is possible (in fact, likely) that "inews" is not in your standard
path. If so, you need to do this:
grep inews `which Pnews`
to find the full pathname for the inews executable.
--
Ron Newman rnewman@cybercom.net
Web: http://www.cybercom.net/~rnewman/home.html
Technical Details
Message-ID:
<rnewman-0802971323140001@mfd-dial6-8.cybercom.net>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mailReferences:
<32FA27E5.74D9@marine.fit.edu> <5ddqv2$917@nntp1.ba.best.com>Show Full Headers
Complete Article Headers
Message-ID: <rnewman-0802971323140001@mfd-dial6-8.cybercom.net> Subject: Re: Command line posting in ANY newsreader Date: Sat, 08 Feb 1997 00:00:00 +0000 From: rnewman@cybercom.net (Ron Newman) References: <32FA27E5.74D9@marine.fit.edu> <5ddqv2$917@nntp1.ba.best.com> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail X-Deja-AN: 217457705 Organization: None Newsgroups: news.software.readers