[ Brian Tao writes: ]
>
> You can also setup a very simply watchdog script that runs on your
> Majordomo server once a night:
>
> cd /var/majordomo/lists ; sort *-l *-l-digest | uniq -c | sort -nr | head
>
> This will give you the top ten people subscribed to the most lists
> on your server (mailing lists here are all named consistently).
Even if one's lists aren't named so consistently, Mj knows that list
files don't contain a '.', so this pipeline could be written as:
cd /var/majordomo/lists ; sort `ls | grep -v '\.'` | uniq -c | sort -nr | head
For sort implementations that have the -u option:
cd /var/majordomo/lists ; sort `ls | grep -v '\.'` | sort -unr | head
--
Dave Wolfe *Not a spokesman for Motorola*
Motorola MMTG 6501 Wm. Cannon Dr. W. OE112 Austin TX 78735-8598
References:
|
|