🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
12 messages
12 total messages Started by jay Wed, 05 Apr 2000 00:00
posting articles
#45550
Author: jay
Date: Wed, 05 Apr 2000 00:00
12 lines
966 bytes
Can someone tell me how I can post an article to a newsgroup from the unix
command line?  Not soemthing that should work, but something that does.  I
need details, I've tried a bunch of stuff and can't seem to do it.

TIA

Jay




Re: posting articles
#45532
Author: Russ Allbery
Date: Wed, 05 Apr 2000 00:00
12 lines
950 bytes
jay@mailbx.com writes:

> Can someone tell me how I can post an article to a newsgroup from the
> unix command line?  Not soemthing that should work, but something that
> does.

inews -h < article

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>

Re: posting articles
#45536
Author: Bill Cole
Date: Wed, 05 Apr 2000 00:00
28 lines
1742 bytes
In article <ylg0t09m3m.fsf@windlord.stanford.edu>, Russ Allbery
<rra@stanford.edu> wrote:

>jay@mailbx.com writes:
>
>> Can someone tell me how I can post an article to a newsgroup from the
>> unix command line?  Not soemthing that should work, but something that
>> does.
>
>inews -h < article

Which WILL work, provided you have a reasonable copy & version of inews
laying around in $PATH AND a news server to which you have access that
inews can discern from the environment. Otherwise not. 

I make that caveat because I've had to explain this a couple of time to
people who have a commercial shell acount or who have installed some free
unixish OS, and who have a perfectly functional 'unix' system but no inews
or some musty horror of an inews installed without good cause that cannot
tell where to post.

-- 
Bill Cole, Geek at large. Joel Levin is my backup server. 
I was looking for a new job, but that's on hold at the moment...  
See: http://sc1.scconsult.com/~bill/resume.html for a resume and more
4671st at Freenix!!! I'm moving up FAST!

Re: posting articles
#45554
Author: Sven Paulus
Date: Thu, 06 Apr 2000 00:00
14 lines
919 bytes
Jeremy <bofh@netscum.dk> wrote:
|> % (echo "mode reader"
|>  sleep 1
|>  echo "post"
|>  sleep 1
|>  cat article

cat article | sed 's/^\./../'  ?

|>  echo "."
|>  sleep 1
|>  echo "quit") | telnet news.server.name 119

Re: posting articles
#45557
Author: Jeremy
Date: Thu, 06 Apr 2000 00:00
19 lines
1204 bytes
Sven Paulus  <sven@karlsruhe.org> wrote:

>>> % (echo "mode reader"
>>>  sleep 1
>>>  echo "post"
>>>  sleep 1
>>>  cat article
> 
> cat article | sed 's/^\./../'  ?

Well, sure, that would be better.  I wasn't going for a full-fledged
posting agent. :)  After all, I'm also not checking return codes, and
it'll also fail against a heavily-loaded INN server that takes more than
one second to reply to "mode reader".  Etc.  But it's portable! :)

-- 
Jeremy  (  jeremy@exit109.com  |  bofh@netscum.dk  )

Re: posting articles ** another question
#45565
Author: jay
Date: Thu, 06 Apr 2000 00:00
35 lines
1801 bytes
Ok, now I have another question.  Is it easy to get a text file of all the
groups carried by the news server?

TIA

Jay



<jay@mailbx.com> wrote in message
news:yE_G4.44999$hT2.246043@news1.rdc1.ct.home.com...
> Thanks guys, i'm getting somewhere now
> Jay
>
> Jeremy <bofh@netscum.dk> wrote in message
> news:954997583.585786@news.netscum.dk...
> > Mike Horwath <drechsau+usenet@yuck.net> wrote:
> >
> > >> This should work pretty much anywhere.
> > >
> > > Why didn't you write it in expect? :)
> >
> > Not nearly as portable.
> >
> > If you don't have a shell and telnet, you've got bigger problems than
> > posting to news from the command line. :)
> >
> > --
> > Jeremy  (  jeremy@exit109.com  |  bofh@netscum.dk  )
>
>



Re: posting articles
#45566
Author: Jeremy
Date: Thu, 06 Apr 2000 00:00
29 lines
1364 bytes
Bill Cole <bill@scconsult.com> wrote:

>>> Can someone tell me how I can post an article to a newsgroup from the
>>> unix command line?  Not soemthing that should work, but something
>>> that does.
>>
>> inews -h < article
> 
> Which WILL work, provided you have a reasonable copy & version of inews
> laying around in $PATH AND a news server to which you have access that
> inews can discern from the environment. Otherwise not. 

Most portable way I can think of:

% (echo "mode reader"
 sleep 1
 echo "post"
 sleep 1
 cat article
 echo "."
 sleep 1
 echo "quit") | telnet news.server.name 119

This should work pretty much anywhere.

-- 
Jeremy  (  jeremy@exit109.com  |  bofh@netscum.dk  )

Re: posting articles
#45569
Author: jay
Date: Thu, 06 Apr 2000 00:00
22 lines
1442 bytes
Thanks guys, i'm getting somewhere now
Jay

Jeremy <bofh@netscum.dk> wrote in message
news:954997583.585786@news.netscum.dk...
> Mike Horwath <drechsau+usenet@yuck.net> wrote:
>
> >> This should work pretty much anywhere.
> >
> > Why didn't you write it in expect? :)
>
> Not nearly as portable.
>
> If you don't have a shell and telnet, you've got bigger problems than
> posting to news from the command line. :)
>
> --
> Jeremy  (  jeremy@exit109.com  |  bofh@netscum.dk  )



Re: posting articles ** another question
#45577
Author: Jeremy
Date: Thu, 06 Apr 2000 00:00
13 lines
1082 bytes
 <jay@mailbx.com> wrote:

> Ok, now I have another question.  Is it easy to get a text file of all the
> groups carried by the news server?

Ok, now you're starting to scare me.  Can you tell us a bit about what it
is you're trying to do?  We could probably be a lot more helpful with more
of an overview.

-- 
Jeremy  (  jeremy@exit109.com  |  bofh@netscum.dk  )

Re: posting articles
#45578
Author: Jeremy
Date: Thu, 06 Apr 2000 00:00
15 lines
1016 bytes
Mike Horwath <drechsau+usenet@yuck.net> wrote:

>> This should work pretty much anywhere.
> 
> Why didn't you write it in expect? :)

Not nearly as portable.

If you don't have a shell and telnet, you've got bigger problems than
posting to news from the command line. :)

-- 
Jeremy  (  jeremy@exit109.com  |  bofh@netscum.dk  )

Re: posting articles ** another question
#45584
Author: Doug S
Date: Thu, 06 Apr 2000 00:00
24 lines
1207 bytes
Thus spake  <jay@mailbx.com>:
>
>Ok, now I have another question.  Is it easy to get a text file of all the
>groups carried by the news server?
>

Yes, although I admit the combination of 'posting articles from the
command line' and 'text file of all the groups carried by the server'
concerns me a wee bit...

telnet news.host.name 119 > groups.list
mode reader
list
quit


Doug

-- 
Doug S. (doug@cc.ysu.edu) (http://cc.ysu.edu/~doug/)

The shadow of a dog never bit anyone -- Kenneth Copeland

Re: posting articles ** another question
#45642
Author: jay
Date: Sun, 09 Apr 2000 00:00
26 lines
1661 bytes
I want to post a FAQ to a newsgroup once a week with a cronjob.

As far as the list goes, pure curiousity.  I see why you would ask, this
would be useful info to the scum of the net LOL.

Jay


Jeremy <bofh@netscum.dk> wrote in message
news:955043530.148564@news.netscum.dk...
> <jay@mailbx.com> wrote:
>
> > Ok, now I have another question.  Is it easy to get a text file of all
the
> > groups carried by the news server?
>
> Ok, now you're starting to scare me.  Can you tell us a bit about what it
> is you're trying to do?  We could probably be a lot more helpful with more
> of an overview.
>
> --
> Jeremy  (  jeremy@exit109.com  |  bofh@netscum.dk  )



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