标签:mail -s www wc -l web 邮件 $? lse log count
#!/bin/bashfind /var/www/html/ -type f >/opt/countfile.dbsec
diff /opt/countfile.db &>/opt/counterr.log
if [ $(diff /opt/countfile.db|wc -l) -gt 0 ]
then
echo "the file_count is changed"
mail -s "count_err" wcg@bw.com </opt/count_err.log
else
echo "check file_count is ok"
fi
标签:mail -s www wc -l web 邮件 $? lse log count
原文地址:https://blog.51cto.com/14241151/2365811