#!/bin/bash place=$(hostname | awk -F'.' '{print $1}') # place can be emac3, scusa0, hpc, lonimail rsyncDest="rsync://isaac.lsu.edu/mailman-${place}" LISTS='/usr/lib/mailman/bin/list_lists' MEMBERS='/usr/lib/mailman/bin/list_members' CONFIG='/usr/lib/mailman/bin/config_list' PARENT='/tmp/html' dest="${PARENT}/${place}" idx="${dest}/index.html" allSubscribers="${PARENT}/all.txt" users="${PARENT}/people.txt" usersHtml="${dest}/people.html" rm -rf ${PARENT} mkdir -p ${dest} echo "Generating html..." echo "" > ${idx} echo "" >> ${idx} echo "

Mailing List Reports for ${place}

" >> ${idx} echo "
People and the mailing lists they are subscribed to
" >> ${idx} echo "