This commit is contained in:
age 2006-07-31 08:32:51 +00:00
parent 33a123e34a
commit f20b863fab
3 changed files with 0 additions and 61 deletions

View file

@ -1,23 +0,0 @@
#!/bin/sh
set -e
LISTPATH="/data/lists/"
STATS[0]="Mailinglisten Verkehr:\n"
i=1
for list in `ls ${LISTPATH}`; do
if [ -r ${LISTPATH}${list}/num ]; then
countnew=`cut -d ":" -f1 ${LISTPATH}${list}/num`
if [ -e ${LISTPATH}${list}/num.old ]; then
countold=`cut -d ":" -f1 ${LISTPATH}${list}/num.old`
else
cp ${LISTPATH}${list}/num ${LISTPATH}${list}/num.old
countold=0
fi
changes=$[${countnew}-${countold}]
STATS[$i]="\t${changes}\t${list}\n"
((i++))
cp ${LISTPATH}${list}/num ${LISTPATH}${list}/num.old
fi
done
#echo -e ${STATS[@]}
## this mail is also counted :)
echo -e ${STATS[@]} | mail -s "[counter] aktuelle Aenderungen" qmail@admin.systemausfall.org

View file

@ -1,19 +0,0 @@
#!/bin/sh
set -e
SVNPATH="/data/repos/"
STATS[0]="svn Aenderungen:\n"
i=1
for svn in `ls ${SVNPATH}`; do
countnew=`cut -d " " -f1 ${SVNPATH}${svn}/db/current`
if [ -e ${SVNPATH}${svn}/db/current.old ]; then
countold=`cut -d " " -f1 ${SVNPATH}${svn}/db/current.old`
else
countold=0
fi
changes=$[${countnew}-${countold}]
STATS[$i]="\t${changes}\t${svn}\n"
((i++))
cp ${svn}/db/current ${svn}/db/current.old
done
#echo -e ${STATS[@]}
echo -e ${STATS[@]} | mail -s "[counter] aktuelle Aenderungen" svn@admin.systemausfall.org

View file

@ -1,19 +0,0 @@
#!/bin/sh
set -e
WIKIS="/data/moin/sites/"
STATS[0]="Veraenderte Seiten je Wiki, innerhalb der vergangenen Woche:\n"
i=1
for wiki in `ls $WIKIS`; do
countnew=`wc -l ${WIKIS}/${wiki}/edit-log | cut -d" " -f1`
if [ -e ${WIKIS}/${wiki}/edit-log.old ]; then
countold=`wc -l ${WIKIS}/${wiki}/edit-log.old | cut -d" " -f1`
else
countold=0
fi
changes=$[${countnew}-${countold}]
STATS[$i]="\t${changes}\t${wiki}\n"
((i++))
cp ${WIKIS}/${wiki}/edit-log ${WIKIS}/${wiki}/edit-log.old
done
#echo -e ${STATS[@]}
echo -e ${STATS[@]} | mail -s "[counter] aktuelle Aenderungen" wikis@admin.systemausfall.org