Hi All,
I have written a script which checks for the quota of the system and sends the mail to the user if quota increases a particular threshold.
I want that this scripts get automaticaaly executed ,whic h I believe can be done with the help of crontab.
I am unaware of how to use this crontab.
So,can anyone out here help me with this.
My script goes as :
remsh $HOST -l $TLG_RATER_USR_ID -n "quota -v" > fill4
size=`awk 'NR==3 {print $2}' fill4`
echo $size
a=370000
if [ $size -ge $a ] ; then
echo "quota is more ,kindly delete the unwanted files "| mailx -s URGENT: Low disk space -r
abc@sd.com
else
echo " quota is lessss,u can continue"
fi
Thanks.