# This script is used to reset trafic of all the lists of a sympa server # It must be run as 'root' or 'sympa', and in the homedir of sympa (near the expl directory) # 05/06/2007 # # Discuss about it ? => jean-hugues.belpois@univ-brest.fr # #!/bin/csh -f cd expl foreach name ( * ) if ( -d $name ) then cd $name echo "RAZ du compteur de la liste $name" cat stats | gawk '{print gensub($1, "0", 1)}' > stats2 \mv stats2 stats chown sympa:sympa stats chmod 640 stats cd .. endif end cd ..