🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #76354

Re: Adding more groups INN

#76354
From: Bozweb
Date: Sun, 09 Sep 2007 20:32
53 lines
2197 bytes
On Sun, 9 Sep 2007 18:03:55 +0000 (UTC), Klaus Alexander Seistrup
<klaus@seistrup.dk> wrote:

>Bozweb wrote:
>
>> How can i adding 450 groups ?
>> I had a server crash and he is in the trashcan now:-(
>> Is there a script for or have i doit by hand?
>> Inn-2.4.3 on a ubuntu server
>> tia
>
>If you have a newsgroups file, you could use a bash script along 
>these lines (you might have to change the shebang line):
>
>#v+
>
>#!/bin/bash3
>
>MESSAGE="Creating new newsgroups"
>
>sudo ctlinnd throttle "${MESSAGE}" || exit 1
>
>while read group desc
>do
>  echo -n "${group} "
>  #
>  if grep -q '\(Moderated\)' <<< "${desc}"; then
>    flag='m'
>  else
>    flag='y'
>  fi
>  #
>  echo -n "${flag} ... "
>  sudo ctlinnd newgroup "${group}" "${flag}" 2>&1 || :
>done
>
>sudo ctlinnd go "${MESSAGE}" || exit 1
>
>exit 0
>
># eof
>
>#v-
>
>If the script is called newgroups.sh and the newsgroups file is called 
>newsgroups.txt, you'd invoke the script as "newgroups.sh <newsgroups.txt".
>
>
>Cheers,

Ha, thank you for the script.
-- 
http://www.bozweb.net/
Technical Details
Message-ID: <46e45802$0$240$e4fe514c@news.xs4all.nl>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx02.iad01.newshosting.com!newshosting.com!newsfeed.icl.net!newsfeed.fjserv.net!syros.belnet.be!news.belnet.be!transit.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
References: <46e42727$0$230$e4fe514c@news.xs4all.nl> <fc1cib$ks8$1@minji.szn.dk>

Show Full Headers
Complete Article Headers
Message-ID: <46e45802$0$240$e4fe514c@news.xs4all.nl>
Subject: Re: Adding more groups INN
Date: Sun, 09 Sep 2007 22:32:21 +0200
From: Bozweb <bozweb@bozweb.net>
References: <46e42727$0$230$e4fe514c@news.xs4all.nl> <fc1cib$ks8$1@minji.szn.dk>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx02.iad01.newshosting.com!newshosting.com!newsfeed.icl.net!newsfeed.fjserv.net!syros.belnet.be!news.belnet.be!transit.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Newsgroups: news.software.nntp
X-Newsreader: Forte Agent 4.1/32.1088
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-visit: http://www.bozweb.net for account
Lines: 53
NNTP-Posting-Host: 194.109.236.156
X-Trace: 1189369859 news.xs4all.nl 240 [::ffff:194.109.236.156]:4168
X-Complaints-To: abuse@xs4all.nl