Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
| From | gmc@metro.cx (Koen Martens) |
|---|---|
| Newsgroups | news.groups |
| Subject | Re: List of active (used) groups |
| Date | 2026-06-20 17:22 +0000 |
| Organization | Sonologic AB |
| Message-ID | <1116i93$tl$1@nntp.sonologic.net> (permalink) |
| References | <1115k9u$fnd1$1@solani.org> |
Marco Moock <mm@dorfdsl.de> wrote:
> Some time ago we created a getting started guide for setting up
> newsgroup access.
> https://www.big-8.org/wiki/Getting_Started_with_Usenet
>
> I would like to extend that with a list of active groups, e.g. groups
> that received new posts in the last year etc.
>
> Is there an easy way for server operators to create such statistics?
I run the below script from cron to create a list of active groups.
https://news.sonologic.net/stats/article_counts.html
I run a variant with the find command modified to:
`find . -type d -links 2 -mtime 7 ! -empty`
to create a list of articles in the last week:
https://news.sonologic.net/stats/article_counts_weekly.html
Quick, dirty, good enough for me.
Cheers,
Koen
```
#!/bin/sh
cd ~/spool/articles
{
cat << EOF
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="600">
<title>news.sonologic.net: article counts</title>
</head>
<body>
`date`
<table>
<tr><td>Group</td><td>Articles</td>
EOF
for f in `find . -type d -links 2 ! -empty`; do
echo "$(echo ${f} | tr / . | sed 's/^\.\.//g') $(ls $f | wc -l | sed 's/ //g' )";
done | sort -r -n -k 2 -t\ | awk '{ printf("<tr><td>%s</td><td>%s</td></tr>\n", $1, $2); }'
echo "</body></html>"
} > ~/http/article_counts.html
```
--
Software architecture & engineering: https://www.sonologic.se/
Sci-fi: https://www.koenmartens.nl/
Retrocomputing videos: https://retroscandinavian.eu/
Back to news.groups | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
List of active (used) groups Marco Moock <mm@dorfdsl.de> - 2026-06-20 10:51 +0200
Re: List of active (used) groups Thomas Hochstein <thh@thh.name> - 2026-06-20 11:46 +0200
Re: List of active (used) groups "Adam H. Kerman" <ahk@chinet.com> - 2026-06-20 15:00 +0000
Re: List of active (used) groups pschleck@panix.com (Paul W. Schleck) - 2026-06-23 12:31 +0000
Re: List of active (used) groups Steve Bonine <spb@pobox.com> - 2026-06-23 18:28 -0500
Re: List of active (used) groups pschleck@panix.com (Paul W. Schleck) - 2026-06-24 03:46 +0000
Re: List of active (used) groups Steve Bonine <spb@pobox.com> - 2026-06-25 17:56 -0500
Re: List of active (used) groups gmc@metro.cx (Koen Martens) - 2026-06-20 17:22 +0000
Re: List of active (used) groups gmc@metro.cx (Koen Martens) - 2026-06-20 17:31 +0000
Re: List of active (used) groups Marco Moock <mm@dorfdsl.de> - 2026-06-20 21:18 +0200
Re: List of active (used) groups Marco Moock <mm@dorfdsl.de> - 2026-06-20 21:28 +0200
Re: List of active (used) groups gmc@metro.cx (Koen Martens) - 2026-06-21 06:59 +0000
Re: List of active (used) groups Steve Bonine <spb@pobox.com> - 2026-06-22 10:16 -0500
Re: List of active (used) groups gmc@metro.cx (Koen Martens) - 2026-06-22 17:50 +0000
Re: List of active (used) groups "Adam H. Kerman" <ahk@chinet.com> - 2026-06-22 18:23 +0000
Re: List of active (used) groups pschleck@panix.com (Paul W. Schleck) - 2026-06-23 13:02 +0000
Re: List of active (used) groups Marco Moock <mm@dorfdsl.de> - 2026-06-23 15:12 +0200
Re: List of active (used) groups Thomas Hochstein <thh@thh.name> - 2026-07-05 12:23 +0200
csiph-web