Great Circle Associates Majordomo-Users
(July 1998)
 

Indexed By Date: [Previous] [Next] Indexed By Thread: [Previous] [Next]

Subject: Re: subscriber count
From: Jeff Wasilko <jeffw @ smoe . org>
Date: Thu, 23 Jul 1998 20:08:55 -0400
To: Christopher Adams <chris @ sparkie . osl . state . or . us>, majordomo-users @ GreatCircle . COM
In-reply-to: <Pine.SUN.3.91.980723140718.6400A-100000@sparkie.osl.state.or.us>; from "Christopher Adams" on Thu, Jul 23, 1998 at 02:09:13PM -0700
Mail-followup-to: Christopher Adams <chris@sparkie.osl.state.or.us>,majordomo-users@GreatCircle.COM
References: <Pine.SUN.3.91.980723140718.6400A-100000@sparkie.osl.state.or.us>

On Thu, Jul 23, 1998 at 02:09:13PM -0700, Christopher Adams wrote:
> Does anyone have a quick way to scan all lists and compute a total of 
> subscribers on each list and/or a total of all subscribers to all lists. 
> It sounds like a simple Perl script or such. Has anyone out there already 
> done this? 

This is something I tossed together a few years ago.

Note that I keep a file in my majordomo lists dir called
active.lists that contains the currently active lists on my 
server (it excludes test lists, template lists and some other lists). 

Since majordomo assumes that any file in the lists dir that 
doesn't have a '.' in it is a list, you could generate your list
of lists on the fly if you wish.

#!/bin/sh

cd /majordomo

for list in `cat active.lists`

do
        wc -l $list >> /tmp/list-count.tmp
done

cat /tmp/list-count.tmp
awk '{ s += $1 } END  { print "Total listmembers: " s }'
/tmp/list-count.tmp

rm /tmp/list-count.tmp


References:
Indexed By Date Previous: RE: Need help - Footers not appearing
From: "Erica Zubkoff" <erica@gsn.org>
Next: Re: Some thoughts on user validation....
From: Bill Houle <Bill.Houle@SanDiegoCA.NCR.COM>
Indexed By Thread Previous: Re: subscriber count
From: Jason L Tibbitts III <tibbs@hpc.uh.edu>
Next: Re: subscriber count
From: Jeffrey Goldberg <J.Goldberg@Cranfield.ac.uk>

Google
 
Search Internet Search www.greatcircle.com