We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fe76522 commit cc59487Copy full SHA for cc59487
scripts/mm2_stats.sh
@@ -0,0 +1,23 @@
1
+#!/bin/bash
2
+
3
+#
4
+# Collects stats about mailing list subscribers.
5
6
+# Run as crontab:
7
8
+# 0 1 * * * /home/crestmlman/scripts/mm2_stats.sh > /tmp/mm2_stats.log
9
10
+set -xe
11
12
+LIST_MEMBERS_EXECUTABLE="/opt/mailman/default/bin/list_members"
13
+lists="boost boost-users boost-announce"
14
+current_date=$(date "+%Y-%m-%d")
15
16
+cd "${HOME}"
17
+mkdir -p mm2_stats
18
+cd mm2_stats
19
20
+for list in $lists; do
21
+ count=$(${LIST_MEMBERS_EXECUTABLE} "${list}" | wc -l)
22
+ echo "${current_date} ${count}" >> "${list}.txt"
23
+done
0 commit comments