I saw the following script in an earier post in this forum. Changed a little bit and trying it in my env but getting errors. Pls help in debuggin this.
(2) needs to be properly formatted ... and use backticks ... and use right test syntax ...
#!/bin/ksh
DFR=`df -g filesystempath|grep filesystem|awk '{print $4}'`
if [ $DFR -gt 90 ]
then
echo "True"
else
echo "False"
fi
#checking if its greater than 90%