newbie here. am doing script on monitoring my directory /home that if it gets greater or equal to 86, then it will prompt me overload, else its fine.
please help what's wrong with my script. thanks
SIZE='df -h /home | /bin/awk '{ print $5 }' | grep -v Use% | sed '/%//''
if [ $SIZE >= "86" ]; then
echo "overload"
else
echo "ok"
fi
Allan
|