🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
3 messages
3 total messages Started by Bilbo Thu, 20 Jan 2000 00:00
problem with this script
#43546
Author: Bilbo
Date: Thu, 20 Jan 2000 00:00
100 lines
3718 bytes
Please help....

I would like to automate a posting to a newsgroup, so I've written a script
to do the posting and will have it run on a cron to make a weekly posting to
a
particular news group.

I have an ISP, but only allows you to connect to the news server when you
have connected to the internet through them. So, my news server cannot be
used....

I have found an open news server that will allow postings and I have
succesfully posted to some newsgroups via the script below.

The problem is finding a news server that carries the newsgroup
uk.adverts.telecom.mobile, allows open connection and will allow posts to be
made.

I've been unsuccessful, so far, in finding suitable news servers. It's a big
job, (even when using News Hunter or www.jammed.com ) - it seems that the
news servers that appear to carry this newsgroup allow posting, and my
script (below) will recognise this but then gets the error "Can't Post". The
script DOES post succesfully to other newsgroups, like alt.test, uk.test etc
so it's very confusing :-(

Maybe the code is correct and I just need to find a suitable news server
that carries this newsgroup and allows posts to be made? I'm no expert on
NNTP, so perhaps there is something wrong with my script, or that certain
newsgroups are more stringent on the header sent?

If you feel that the script is fine and the answer is for me to *subscribe*
to a news server (rather than hunt for an open one), can you recommend one?

TIA for any suggestions.

Please respond to this newsgoup or email me at
bilbo_baggins50@hotmail.NOSPAM.com
(please remove .NOSPAM to email me)


----------- PERL CODE FOLLOWS -----------

#!/usr/bin/perl

use Net::NNTP;

$nntp= Net::NNTP->new; #use default port and options

#$ns="freenews.netfront.net";  #NEWS SERVER TO CONNECT TO
$ns="newssrv2.hrz.uni-oldenburg.de";

$ng="alt.test";   #NEWSGROUP
#$ng="uk.adverts.telecom.mobile";

print "\n\nGETTING READY TO CONNECT...\n";

$server= Net::NNTP->new($ns) or die "can't connect to news server $@\n";

print "Ok, connected to news server: $ns\n";

($narticles, $first, $last, $name) = $server->group($ng) or die "can't
select newsgroup:$ng\n";

print "Ok, have selected newsgroup: $ng\n";

@lines="From: bilbo_baggins50\@hotmail.NOSPAM.com (bilbo)
Newsgroups: $ng
Subject: $ns Test
Organization: Test Labs Inc
Distribution: world
X-No-Archive: Yes

This is just a test message

Testing 1 2 3...
posted via $ns
bilbo_baggins50\@hotmail.NOSPAM.com (remove .NOSPAM to email me)
";

$server->postok() or warn "server didn't tell me i could post: \n";

print "Ok, news server allows posting...\n";

$server->post(@lines) or die "can't post: $!\n";

print "\n\nPOSTED SUCCESSFULLY!!!!";

------------- END PERL CODE -----------











Re: problem with this script
#43535
Author: Russ Allbery
Date: Thu, 20 Jan 2000 00:00
24 lines
1753 bytes
In news.software.nntp, Bilbo <bilbo_baggins50@hotmail.com> writes:

> I would like to automate a posting to a newsgroup, so I've written a
> script to do the posting and will have it run on a cron to make a weekly
> posting to a particular news group.

> I have an ISP, but only allows you to connect to the news server when
> you have connected to the internet through them. So, my news server
> cannot be used....

You have asked this question what seems like a dozen times by now.  You
have had it explained to you six ways to Sunday why what you're doing is a
bad idea, why using open news servers is essentially theft, and why your
script is generally not going to work as long as you keep pointing it at
supposedly open news servers because the vast majority of them aren't
actually open at all.

Do you expect the answers to change if you ask the question a few more
times?

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

Re: problem with this script
#43561
Author: Allan M. Due
Date: Fri, 21 Jan 2000 00:00
49 lines
2984 bytes
"Bilbo" <bilbo_baggins50@hotmail.com> wrote in message
news:8683dq$rts$1@nclient11-gui.server.virgin.net...
: Please help....
: I would like to automate a posting to a newsgroup, so I've written a script
: to do the posting and will have it run on a cron to make a weekly posting to
: a  particular news group.
:
: I have an ISP, but only allows you to connect to the news server when you
: have connected to the internet through them. So, my news server cannot be
: used....
: I have found an open news server that will allow postings and I have
: succesfully posted to some newsgroups via the script below.
:
: The problem is finding a news server that carries the newsgroup
: uk.adverts.telecom.mobile, allows open connection and will allow posts to be
: made.
:
: I've been unsuccessful, so far, in finding suitable news servers. It's a big
: job, (even when using News Hunter or www.jammed.com ) - it seems that the
: news servers that appear to carry this newsgroup allow posting, and my
: script (below) will recognise this but then gets the error "Can't Post". The
: script DOES post succesfully to other newsgroups, like alt.test, uk.test etc
: so it's very confusing :-(
:
: Maybe the code is correct and I just need to find a suitable news server
: that carries this newsgroup and allows posts to be made? I'm no expert on
: NNTP, so perhaps there is something wrong with my script, or that certain
: newsgroups are more stringent on the header sent?
:
: If you feel that the script is fine and the answer is for me to *subscribe*
: to a news server (rather than hunt for an open one), can you recommend one?
:
: TIA for any suggestions.

Hmm, you have running a cron job to post the same message to a newsgroup over
and over again.  Seems to be working so far.  Keep up the good work!

AmD

--
$email{'Allan M. Due'} = ' All@n.Due.net ';
--Random Quote--
Algren's Precepts:
Never eat at a place called Mom's. Never play cards with a man named Doc. And
never lie down with a woman who's got more troubles than you.



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