🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
3 messages
3 total messages Started by SRINIVASA MEDAM Thu, 08 May 1997 00:00
How can I post an article using command line arguments.
#33417
Author: SRINIVASA MEDAM
Date: Thu, 08 May 1997 00:00
20 lines
1132 bytes
Hi,
I use tin for news reading. 
How can I post using command line arguments from unix shell prompt.
I have written the article in a file called 'natrcile'.
I would like to post it to a test news group
	for example to 'news.test'
I would like to use the subject of my posting as "Srini test posting".
I would like to do the above from unix shell prompt using tin
command line arguents.

I tried the following. But no result.
	% tin -w "news.test" -s "Srini test posting" < narticle

Could some one help how to do this. 
Thanks in advance
Srini Medam 


Re: How can I post an article using command line arguments.
#33416
Author: Eli the Bearded
Date: Thu, 08 May 1997 00:00
34 lines
2186 bytes
SRINIVASA MEDAM <medams@ucunix.san.uc.edu> wrote:
>I use tin for news reading. 

Reading and posting news are different things. Any good Unix program
will have different programs to do differnt things. trn does, I don't
know tin myself.

>How can I post using command line arguments from unix shell prompt.

man inews

>I would like to do the above from unix shell prompt using tin
>command line arguents.

I doubt tin will do it. Read the man page.

>I tried the following. But no result.
>	% tin -w "news.test" -s "Srini test posting" < narticle

My inews doesn't do headers on the command line, some do. Check
your documentation. This will work with my inews:

% ( echo "Newsgroups: news.test" ; echo "Subject: Srini test posting" \
    echo "" ; cat narticle ) | inews

Versions of inews which take headers on the command line need a '-h'
flag to accept them from stdin.

Elijah
------
I like inews. inews is fun.

Re: How can I post an article using command line arguments.
#33423
Author: Frank Slootweg
Date: Fri, 09 May 1997 00:00
31 lines
1853 bytes
Eli the Bearded (usenet-tag@qz.little-neck.ny.us) wrote:
> SRINIVASA MEDAM <medams@ucunix.san.uc.edu> wrote:
> >I use tin for news reading. 
> 
> Reading and posting news are different things. Any good Unix program
> will have different programs to do differnt things. trn does, I don't
> know tin myself.
> 
> >How can I post using command line arguments from unix shell prompt.
> 
> man inews

  It may depend on the distibution, but AFAIK, not all news"reader"
distributions contain inews. For example I got a binary distribution
package for tin, but that did not include inews. I have inews, but that
was distributed as part of my (INN) *server*, not as part of the
news"reader".

> >I would like to do the above from unix shell prompt using tin
> >command line arguents.
> 
> I doubt tin will do it. Read the man page.

  tin can be used with standard input input redirection, but it will
easily get into trouble if the standard input is fed faster than tin can
swallow it (i.e. no flow control). tin is designed for interactive use,
not for command-line/batch use. I agree with you that inews is a better
solution for the Srinivasa's needs.

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