🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
4 messages
4 total messages Started by Philip Willoughby Fri, 13 Jun 2003 17:05
Command-line posting (non-interactive)
#126365
Author: Philip Willoughby
Date: Fri, 13 Jun 2003 17:05
42 lines
2297 bytes
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi all,

I need to add a command to automatically post to a newsgroup to a script
I've written.  I know this must be possible, or spammers couldn't
operate ;-).

However, I need the command to work whether the user in question uses
news at all or not.  I can assume the NNTPSERVER variable will be set
correctly, but the .newsrc may be missing or not contain the group in
question.

I've looked at using slrn (no), trn (no), and nnpost (yes, if you set it
up first).

To set your minds at rest, my script installs new software into a
network-wide location.  Since the stuff is not officially supported, I
can't email everyone as I normally would, but at the same time I'd like
to give users a better method of finding when it's updated than "watch
ls" ;-).

Any ideas?

Regards,

Philip Willoughby
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)

iD8DBQE+6gRni294YDsKgb0RAjnpAKCMS9uJql9N6CBF2HLJgQZfnIrJEgCfeyPD
HByVqJ9QmIVInuwn0Z7ncYY=
=9o85
-----END PGP SIGNATURE-----

-- 
Systems Programmer, Department of Computing, Imperial College, London, UK

echo bzidd@nfo.ho.co.se | tr "bizndfohces" "pwgd9ociaku"
Why reinvent the wheel?                 Because we can make it rounder...
Re: Command-line posting (non-interactive)
#126372
Author: Karl Kleinpaste
Date: Fri, 13 Jun 2003 18:46
7 lines
1705 bytes
Philip Willoughby <pgw99@doc.ic.ac.uk> writes:
> I need to add a command to automatically post to a newsgroup to a script
> I've written.

"inews", which is the small "news injector" program that is, or should
be, part of any client system installation.
Re: Command-line posting (non-interactive)
#126373
Author: Alan Connor
Date: Fri, 13 Jun 2003 19:26
56 lines
2545 bytes
In article <bcd097$t4l$1@harrier.doc.ic.ac.uk>, Philip Willoughby wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Hi all,
> 
> I need to add a command to automatically post to a newsgroup to a script
> I've written.  I know this must be possible, or spammers couldn't
> operate ;-).
> 
> However, I need the command to work whether the user in question uses
> news at all or not.  I can assume the NNTPSERVER variable will be set
> correctly, but the .newsrc may be missing or not contain the group in
> question.
> 
> I've looked at using slrn (no), trn (no), and nnpost (yes, if you set it
> up first).
> 
> To set your minds at rest, my script installs new software into a
> network-wide location.  Since the stuff is not officially supported, I
> can't email everyone as I normally would, but at the same time I'd like
> to give users a better method of finding when it's updated than "watch
> ls" ;-).
> 
> Any ideas?
> 
> Regards,
> 
> Philip Willoughby
> 

What I do, Philip, and I'm not sure that this will help you or not, is 
use slrn/slrnpull  rather than stay connected to the newserver.

I compose posts on slrn (but they could be from any news-editor, I would think)
and it puts them in $SLRNPULL_ROOT/out.going. I  have  slrnpull --post-only
aliased to sn and they are on the way at a couple of keystrokes. Be easy to
script this, I would think.


alanc














Re: Command-line posting (non-interactive)
#126374
Author: Philip Willoughby
Date: Fri, 13 Jun 2003 20:28
34 lines
2088 bytes
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Fri, 13 Jun 2003 14:46:36 -0400, Karl Kleinpaste <karl@charcoal.com> wrote:
> Philip Willoughby <pgw99@doc.ic.ac.uk> writes:
>> I need to add a command to automatically post to a newsgroup to a script
>> I've written.
> 
> "inews", which is the small "news injector" program that is, or should
> be, part of any client system installation.

Hmmm, don't seem to have it here.  I solved the problem by using Perl's
News::NNTPClient module to do the work for me.  I'll have to find inews
for next tim, however...

Sorry to bother you unnecessarily, and ta for the tips :-)

Regards,

Philip Willoughby
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)

iD8DBQE+6jPQi294YDsKgb0RAhIBAJ9/N2/6qTp37kmV/r3+Fe5z2qpThwCdHIoQ
hHe0q2biKUR30RtY9/FWolI=
=9+ni
-----END PGP SIGNATURE-----

-- 
Systems Programmer, Department of Computing, Imperial College, London, UK

echo bzidd@nfo.ho.co.se | tr "bizndfohces" "pwgd9ociaku"
Why reinvent the wheel?                 Because we can make it rounder...
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