hello,
i need a filesystem shell script to monitor %full
thanks
Printable View
hello,
i need a filesystem shell script to monitor %full
thanks
#!/bin/ksh
for wline in `df -kl | grep -iv Capacity | awk '{print $5 $6}'`
do
pct=`echo $wline | awk -F% '{print $1}'`
mp=`echo $wline | awk -F% '{print $2}'`
if (( pct > 80 ))
then
echo $mp" is "$pct"% full!"
fi
done