🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #9228

Re: need help with script to add new newsgroups

#9228
From: Chantelle Keller
Date: Thu, 11 Jul 1996 00:00
45 lines
1892 bytes
Dana -

I believe you need to use "chop" to chop off the newline at the end of 
$name before you use it in the newgroup command.  Thanks for the idea 
though, I'm going to use it to update my own active file!

Hope that helps!
Chantelle

Dana Brewer wrote:
> 
> I'm trying to create a perl script to read the unwanted.log and use
> ctlinnd to add new newsgroups to active.  (These were some groups that
> we had taken out of active because of disk storage problems - this is a
> one-time program).
> 
> My code looks like:
> 
> $ctlinnd = 'ctlinnd'  (I actually have the full path name here)
> 
> while (<>) {
> 
>         ($num,$name) = split(/ /,$_);
>         system ctlinnd, "newgroup", $name;
> 
> }
> 
> This is generating a two-line entry in active:
> 
> misc.jobs.offered
>  0000000000 0000000001 y
> 
> If I run the simple perl statement:
>         system ctlinnd, "newgroup", "misc.jobs.offered";
> it creates the correct entry in active.
> 
> Does anyone know what I'm doing wrong?

=====================================================================
Chantelle Keller
Systems Programmer, Ithaca College
ckeller@ithaca.edu

Technical Details
Message-ID: <31E55BBD.7776@ithaca.edu>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail
References: <31E545DC.3515@nav.cc.tx.us>

Show Full Headers
Complete Article Headers
Message-ID: <31E55BBD.7776@ithaca.edu>
Subject: Re: need help with script to add new newsgroups
Date: Thu, 11 Jul 1996 00:00:00 +0000
From: Chantelle Keller <ckeller@ithaca.edu>
References: <31E545DC.3515@nav.cc.tx.us>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail
X-Deja-AN: 167828030
Distribution: inet
To: Dana Brewer <dana@nav.cc.tx.us>
Content-type: text/plain; charset=us-ascii
Organization: Ithaca College
Mime-version: 1.0
Newsgroups: news.software.nntp
X-mailer: Mozilla 3.0b3Gold (Macintosh; I; PPC)