Article View: news.software.nntp
Article #9330Re: need help with script to add new newsgroup
From: Dion Marshall
Date: Mon, 15 Jul 1996 00:00
Date: Mon, 15 Jul 1996 00:00
49 lines
1812 bytes
1812 bytes
In article 3515@nav.cc.tx.us, Dana Brewer <dana@nav.cc.tx.us> () writes:
>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?
If I remember my PERL correctly, the comma between "newgroup" and $name in
a system statement is replaced with a "return" by default.
Change it to:
system ctlinnd, "newgroup ".$name;
"Dot" is the concatination operator.
Dion
---
--
Pay no attention to the address behind the "From:" line!
Address all mail to:
marshald@cbc.com (work)
or dion.marshall@pobox.com (home)
Technical Details
Message-ID:
<1996Jul15.173644.24474@cbgate.cbc.com>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-mailReferences:
<31E545DC.3515@nav.cc.tx.us>Show Full Headers
Complete Article Headers
Message-ID: <1996Jul15.173644.24474@cbgate.cbc.com> Subject: Re: need help with script to add new newsgroup Date: Mon, 15 Jul 1996 00:00:00 +0000 From: marshald@cbc.com (Dion Marshall) 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: 168900930 Sender: news@cbgate.cbc.com (Net News Admin) Organization: Chemical Bank Reply-to: marshald@cbc.com Newsgroups: news.software.nntp