🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #9245

need help with script to add new newsgroups

#9245
From: Dana Brewer
Date: Thu, 11 Jul 1996 00:00
29 lines
1307 bytes
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?

Technical Details
Message-ID: <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

Show Full Headers
Complete Article Headers
Message-ID: <31E545DC.3515@nav.cc.tx.us>
Subject: need help with script to add new newsgroups
Date: Thu, 11 Jul 1996 00:00:00 +0000
From: Dana Brewer <dana@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: 167817144
Distribution: inet
Content-type: text/plain; charset=us-ascii
Organization: Navarro College
Mime-version: 1.0
Newsgroups: news.software.nntp
X-mailer: Mozilla 3.0b5aGold (Win95; I)