<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><entry xmlns='http://www.w3.org/2005/Atom' xmlns:georss='http://www.georss.org/georss'><id>tag:blogger.com,1999:blog-8066513.post-4674034641419215982</id><published>2009-05-25T22:19:00.001-07:00</published><updated>2009-05-25T22:19:41.448-07:00</updated><title type='text'>find out disk space usage</title><content type='html'>&lt;pre&gt;#!/bin/sh df -H | grep -vE '^Filesystem|tmpfs|cdrom' | awk '{ print $5 " " $1 }' | while read output; do   echo $output   usep=$(echo $output | awk '{ print $1}' | cut -d'%' -f1  )   partition=$(echo $output | awk '{ print $2 }' )   if [ $usep -ge 90 ]; then     echo "Running out of space \"$partition ($usep%)\" on $(hostname) as on $(date)" |      mail -s "Alert: Almost out of disk space $usep%" you@somewhere.com   fi done &lt;/pre&gt;&lt;pre&gt;&lt;br /&gt;&lt;/pre&gt;&lt;pre&gt;MySql show table status&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8066513-4674034641419215982?l=iamjerryyeung.blogspot.com'/&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://iamjerryyeung.blogspot.com/feeds/4674034641419215982/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=8066513&amp;postID=4674034641419215982' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8066513/posts/default/4674034641419215982'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8066513/posts/default/4674034641419215982'/><link rel='alternate' type='text/html' href='http://iamjerryyeung.blogspot.com/2009/05/find-out-disk-space-usage.html' title='find out disk space usage'/><author><name>iamjerryyeung</name><uri>http://www.blogger.com/profile/03519739527132309026</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='02364272145354087608'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry>