5

Looking to check disk space

view full story
linux-howto

http://www.unix.com – Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted! 1. The problem statement, all variables and given/known data: Need to check the disk space and if any portion disk space usage high then write to one file, later will check that file and inform thorough send mail. 2. Relevant commands, code, scripts, algorithms: #MSM2 Disk Check DIR=/home/mform/healthcheck rm $DIR/disk.txt df -h > $DIR/_tmp5 for i in 2 3 4 5 6 7 8 9 do cat $DIR/_tmp5 | grep -v capacity | awk '{print $5}' | sed 's/%//g' >> $DIR/_tmp6 else c (HowTos)