posting to a newsgroup 
Author Message
 posting to a newsgroup

anybody know how to post message to a newsgroup using perl scripts?
i'm quite new to perl, so i dont know how to do?
can itbe done by 'sendmail'?
thanks



Wed, 17 May 2000 03:00:00 GMT  
 posting to a newsgroup

+ anybody know how to post message to a newsgroup using perl scripts?

Yes. Take a look at the News::NNTPClient module.

James

--
Consulting Minister for Consultants, DNRC
Support the anti-Spam amendment <url:http://www.cauce.org/>
To cure your perl CGI problems, please look at:
<url:http://www.perl.com/perl/faq/idiots-guide.html>



Wed, 17 May 2000 03:00:00 GMT  
 posting to a newsgroup

X-Newsreader: TIN [version 1.2 PL2]

: anybody know how to post message to a newsgroup using perl scripts?
: i'm quite new to perl, so i dont know how to do?
: can itbe done by 'sendmail'?

I run this script every 15 minutes to push news out from our
server to our ISP.

#!/usr/bin/perl -w
# script to post news
$|=1;
print "Running..\n";
require News::NNTPClient ;
$c = new News::NNTPClient("204.191.136.3") || die "Down $1";  # news.istar.ca
open(LIST,"/usr/local/spool/news/out.going/istar") || exit ; # nothing to post
while (<LIST>) {

    print "Posting $_ \n";

   open(ARTICLE,"</usr/local/spool/news/$article_id[0]") || die "open $! \n";
   while(<ARTICLE>) {

   }
    close(ARTICLE);

                print "Article transfered\n";
                } else {
                $result=$c->message ;
                print "Article rejected: ", $result,"\n" ;

                print "Result 0 is : $result[0] \n";
                unless ($result[0] eq "435") { die "$result" };
                }
   }

--
Danny Aldham           SCO Ace , MCSE , JAPH , DAD
I wak'd, she fled, and day brought back my night. jm



Wed, 17 May 2000 03:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Posting to a newsgroup using Perl

2. perl to post files to newsgroups???

3. perl to post files to newsgroups???

4. script/module to send a post to a newsgroup

5. script/module to send a post to a newsgroup

6. Posting to a Newsgroup with a Perl Script.

7. script to auto post to a newsgroup

8. Cross Post to the Newsgroups

9. Send Thousands of Postings to the Newsgroups with Mailloop

10. How to post to a newsgroup from a script?

11. URGENT: How do I post to a newsgroup from a perl routine?

12. URGENT: How do I post to a newsgroup from a perl routine?

 

 
Powered by phpBB® Forum Software