#!/bin/shOUT=`df | grep '/boot' | awk '{print $5}'| sed 's/%//'`echo $OUTuntil [ "$OUT" -gt "20" ]do echo "full!" | mail rootdone 复制代码