🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #92599

Re: Script for creating groups

#92599
From: Julien ÉLIE
Date: Sun, 04 Jan 2026 20:34
25 lines
2035 bytes
Hi ejs,

> i've migrated the INN2 server recently to another host.
> A Python script recreating the visible group hierarhy appeared.
> 
> if len(res_groups) > 0:
>    for ng in res_groups:
>      res = F"sudo {ctlinnd} newgroup {ng} {ng_opt}"
>      print(F"Executing '{res}'")
>      os.system(res)
> else:
>    print("\n\tNothing to do. Everything is already in sync.")

Thanks for sharing your Python script!

FWIW, INN comes with a program called actsync which can also perform 
such a synchronization between two news servers.  See the examples 
section at:
     https://www.eyrie.org/~eagle/software/inn/docs/actsync.html

-- 
Julien ÉLIE

« L'ordinateur obéit à vos ordres, pas à vos intentions. »
Technical Details
Message-ID: <10jeit5$2lrk5$2@news.trigofacile.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!spool1.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!weretis.net!feeder8.news.weretis.net!news.trigofacile.com!.POSTED.2001:861:3f81:7990:f9e4:915:c1a:621c!not-for-mail
References: <10j5rac$3g4ra$1@dont-email.me>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!spool1.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!weretis.net!feeder8.news.weretis.net!news.trigofacile.com!.POSTED.2001:861:3f81:7990:f9e4:915:c1a:621c!not-for-mail
From: Julien ÉLIE <iulius@nom-de-mon-site.com.invalid>
Newsgroups: news.software.nntp
Subject: Re: Script for creating groups
Date: Sun, 4 Jan 2026 21:34:45 +0100
Organization: Groupes francophones par TrigoFACILE
Message-ID: <10jeit5$2lrk5$2@news.trigofacile.com>
References: <10j5rac$3g4ra$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Sun, 4 Jan 2026 20:34:45 -0000 (UTC)
Injection-Info: news.trigofacile.com; posting-account="julien"; posting-host="2001:861:3f81:7990:f9e4:915:c1a:621c";
	logging-data="2813573"; mail-complaints-to="abuse@trigofacile.com"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:mV6fmc3luWWVB5NeryXwDaypznA= sha256:LZ2HzxqUuEb+Q6ajv+MhhmJBCEl6NIPOO+qHwa1DNHI=
	sha1:eFhfxgLqMlWMdEfkAZCQjWh9ANo= sha256:oCnN6+APknX1t7LV3tXbQKWpzMK24XuvhDpdfz0FTfo=
In-Reply-To: <10j5rac$3g4ra$1@dont-email.me>