Hi,
I post statistics to a newsgroup called news:alt.activism.death-penalty
once per week, using the 'ngstatistics' script by H. Alex LaHurreau and
Davide G. M. Salvetti.  You can see the script in its entirety here ... 

url:http://www.zeouane.org/perl/ngstatistics.pl

It works perfectly ... 

url:http://groups.google.com/groups?q=g:thl2649704580d&dq=&hl=fr&lr=&ie=UTF-8&selm=apgkif%241am37%241%40ID-91468.news.dfncis.de

I run it from a shell script in /usr/local/sbin, as follows ... 

        #!/bin/sh

        chdir /root

        /home/desmond/bin/ngstatistics -np -g alt.activism.death-penalty --days 7 -l 
10 -s 10 -e -ea [EMAIL PROTECTED] -en Des -eta [EMAIL PROTECTED] -et 
Des -v --dotted=yes &&

Now, just out of curiosity, I change the newsgroup to another one to which
I'm subscribed (news:rec.travel.europe), and run the same script (without
changing _anything_ in the script).  The result is ... 

Scanning 7 days of rec.travel.europe...Can't call method "address" on an
undefined value at /usr/local/lib/perl5/site_perl/5.8.0/News/Scan/Article.pm line 155, 
<GEN53> line 34.

Line 155 of /usr/local/lib/perl5/site_perl/5.8.0/News/Scan/Article.pm looks
like this ... 

        if (exists $self->group->aliases->{lc $addr->address}) {

I've put a copy of ../Article.pm here, to save bandwidth ... 

url:http://www.zeouane.org/perl/Article.pm

Anyone care to lend a hand ?  How can a script work with one group, yet not
with another, when nothing in the script has been changed ?  Also, my news
server _is_ subscribed to both groups.

Thanks in advance.

D.

-- 
Desmond Coughlan          |'Io non mori, e non rimasi vivo'
[EMAIL PROTECTED] 
http://www.zeouane.org

Attachment: msg38395/pgp00000.pgp
Description: PGP signature

Reply via email to