#monitor available disk space SPACE='df | sed -n '/ \ / $ / p' | gawk '{print $5}' | sed's/%//' if [ $SPACE -ge 90 ] then xxx@163.com fi