<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Rubinium.org &#187; disk-usage</title>
	<atom:link href="http://rubinium.org/blog/archives/tag/disk-usage/feed/" rel="self" type="application/rss+xml" />
	<link>http://rubinium.org/blog</link>
	<description>The Element of Aron and Heather</description>
	<lastBuildDate>Fri, 25 Mar 2011 14:04:32 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Shell Tricks #3 &#8211; Disk Usage Alarm</title>
		<link>http://rubinium.org/blog/archives/2007/08/04/shell-tricks-3-disk-usage-alarm/</link>
		<comments>http://rubinium.org/blog/archives/2007/08/04/shell-tricks-3-disk-usage-alarm/#comments</comments>
		<pubDate>Sat, 04 Aug 2007 16:51:29 +0000</pubDate>
		<dc:creator>A R Baboon</dc:creator>
				<category><![CDATA[Shell Tricks]]></category>
		<category><![CDATA[alarm]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[csh]]></category>
		<category><![CDATA[disk-usage]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[sh]]></category>
		<category><![CDATA[shell]]></category>
		<category><![CDATA[tcsh]]></category>

		<guid isPermaLink="false">http://rubinium.org/blog/archives/2007/08/04/shell-tricks-3-disk-usage-alarm/</guid>
		<description><![CDATA[This is a one-liner to &#8220;alarm&#8221; if the disk usage of a filesystem has exceeded a certain threshold. I put the directory to monitor as &#8220;~&#8221; (home) and the threshold as 40%. test `df -h ~ &#124; grep -o '[0-9]*%' &#124; grep -o '[0-9]*'` -ge 40 &#38;&#38; echo high]]></description>
			<content:encoded><![CDATA[<p>This is a one-liner to &#8220;alarm&#8221; if the disk usage of a filesystem has exceeded a certain threshold. I put the directory to monitor as &#8220;~&#8221; (home) and the threshold as 40%.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">test</span> <span style="color: #000000; font-weight: bold;">`</span><span style="color: #c20cb9; font-weight: bold;">df</span> <span style="color: #660033;">-h</span> ~ <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">grep</span> <span style="color: #660033;">-o</span> <span style="color: #ff0000;">'[0-9]*%'</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">grep</span> <span style="color: #660033;">-o</span> <span style="color: #ff0000;">'[0-9]*'</span><span style="color: #000000; font-weight: bold;">`</span> <span style="color: #660033;">-ge</span> <span style="color: #000000;">40</span> <span style="color: #000000; font-weight: bold;">&amp;&amp;</span> <span style="color: #7a0874; font-weight: bold;">echo</span> high</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://rubinium.org/blog/archives/2007/08/04/shell-tricks-3-disk-usage-alarm/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

