<?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>LinuxNut.org &#187; watch</title>
	<atom:link href="http://linuxnut.org/tag/watch/feed/" rel="self" type="application/rss+xml" />
	<link>http://linuxnut.org</link>
	<description>Nuts about Linux and Stuff...</description>
	<lastBuildDate>Fri, 09 Apr 2010 15:52:45 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>watch</title>
		<link>http://linuxnut.org/2009/01/watch/</link>
		<comments>http://linuxnut.org/2009/01/watch/#comments</comments>
		<pubDate>Sun, 04 Jan 2009 14:56:41 +0000</pubDate>
		<dc:creator>Bryce</dc:creator>
				<category><![CDATA[How-Tos]]></category>
		<category><![CDATA[command]]></category>
		<category><![CDATA[watch]]></category>

		<guid isPermaLink="false">http://admin.linuxnut.org/?p=25</guid>
		<description><![CDATA[I only came across this command fairly recently. It&#8217;s a simple command, but immensely useful.
The watch command is used to run a given command at a predefined interval, and to monitor the output in real-time until the watch command is terminated. When run, it initially only displays the first output of the given command, and [...]]]></description>
			<content:encoded><![CDATA[<p>I only came across this command fairly recently. It&#8217;s a simple command, but immensely useful.</p>
<p>The watch command is used to run a given command at a predefined interval, and to monitor the output in real-time until the watch command is terminated. When run, it initially only displays the first output of the given command, and then only updates it if something in the output changes.</p>
<p><span id="more-25"></span>For example to have a constantly up-to-date listing of a directory, just run
<pre>watch ls</pre>
<p> Or similarly to have a list of who is logged onto your system, just run
<pre>watch who</pre>
<p> These two examples are very simple, but they can be made as complex as you like.</p>
<p>A number of options can be used:</p>
<ul>
<li>&#8216;-d&#8217; or &#8216;&#8211;differences&#8217; will briefly highlight what has changed in the output</li>
<li>&#8216;&#8211;cumulative&#8217; will make the differences remain displayed</li>
<li>&#8216;-n <em>seconds</em>&#8216; or &#8216;&#8211;interval=<em>seconds</em>&#8216; will allow the interval between program runs to be set to something other than it default of two seconds</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://linuxnut.org/2009/01/watch/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
