LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Blogs > allancuntapay
User Name
Password

Notices


Uncategorized Entries with no category
Old

home directory size monitoring script

Posted 11-06-2009 at 01:15 AM by allancuntapay

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
LQ Newbie
Posted in Uncategorized
Views 838 Comments 0 allancuntapay is offline

  



All times are GMT -5. The time now is 12:41 AM.

Main Menu
Advertisement
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration