sum-sympa-w.sh

sum-sympa-w.sh

#! /bin/sh
export LC_ALL=zh_CN.UTF-8
#export LC_ALL=zh_CN.GB18030
cd /bin2/
sh sum-sympa-weekly.sh > sum-sympa-weekly.sh.log 2>&1
/usr/bin/mutt -s "scm5 sum-sympa-weekly" scm-svr-mtr@scm5.***.cn < sum-sympa-weekly.sh.log

sum-sympa-weekly.sh

#!/bin/sh
SRCHOST="scm5"
echo "***$SRCHOST 磁盘使用情况...***"
du -sh /home/sympa/arc/
echo .
echo "***各mailing list 磁盘使用情况...***"
find /home/sympa/arc/ -path '*@*' -type d -maxdepth 1 -exec du -sh {} ;

你可能感兴趣的:(sum-sympa-w.sh)