<?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>WiredRevolution.com &#187; watch</title>
	<atom:link href="http://www.wiredrevolution.com/tag/watch/feed" rel="self" type="application/rss+xml" />
	<link>http://www.wiredrevolution.com</link>
	<description>A Bit of Linux Wisdom</description>
	<lastBuildDate>Wed, 18 Jan 2012 22:45:50 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>View the status of a long emerge</title>
		<link>http://www.wiredrevolution.com/gentoo/view-the-status-of-a-long-emerge?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=view-the-status-of-a-long-emerge</link>
		<comments>http://www.wiredrevolution.com/gentoo/view-the-status-of-a-long-emerge#comments</comments>
		<pubDate>Wed, 31 Dec 2008 14:13:29 +0000</pubDate>
		<dc:creator>Ryan</dc:creator>
				<category><![CDATA[gentoo]]></category>
		<category><![CDATA[emerge]]></category>
		<category><![CDATA[emerge.log]]></category>
		<category><![CDATA[portage]]></category>
		<category><![CDATA[status]]></category>
		<category><![CDATA[tail]]></category>
		<category><![CDATA[update]]></category>
		<category><![CDATA[watch]]></category>

		<guid isPermaLink="false">http://www.wiredrevolution.com/?p=896</guid>
		<description><![CDATA[<img src="http://www.wiredrevolution.com/wp-content/uploads/gentoo_icon.png" width="80" height="82" alt="" title="gentoo" /><br/>At certain times while using Gentoo you are going to have to perform a large emerge, for example when you do an update world. It can be challenging to keep track of the status of this emerge with all the output flying by on the screen. It can also become a problem if you want [...]


Related posts<ol><li><a href='http://www.wiredrevolution.com/commands/view-program-output-with-watch' rel='bookmark' title='Permanent Link: View program output with watch'>View program output with watch</a></li>
<li><a href='http://www.wiredrevolution.com/gentoo/speed-up-gentoo-emerge-with-parallel-fetch' rel='bookmark' title='Permanent Link: Speed up Gentoo emerge with &#8220;parallel-fetch&#8221;'>Speed up Gentoo emerge with &#8220;parallel-fetch&#8221;</a></li>
<li><a href='http://www.wiredrevolution.com/bash-programming/find-the-exit-status-of-a-previous-command-in-bash' rel='bookmark' title='Permanent Link: Find the exit status of a previous command in Bash'>Find the exit status of a previous command in Bash</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<img src="http://www.wiredrevolution.com/wp-content/uploads/gentoo_icon.png" width="80" height="82" alt="" title="gentoo" /><br/><p>At certain times while using Gentoo you are going to have to perform a large emerge, for example when you do an update world. It can be challenging to keep track of the status of this emerge with all the output flying by on the screen. It can also become a problem if you want to check on the status from another machine that did not initiate the emerge.</p>
<p>Thankfully you can check the <strong>/var/log/emerge.log</strong> and get the current status.</p>
<p>Run this command to see the last 10 lines of the log.</p>
<pre>
$ sudo tail /var/log/emerge.log
</pre>
<p>You can combine this command with <strong>watch</strong> and get real-time updates.  This command will automatically update every second.</p>
<pre>
$ watch -n 1 "sudo tail /var/log/emerge.log"
</pre>
<p>Likewise you can use the &#8216;<strong>-f</strong>&#8216; tail option to get updates.</p>
<pre>
$ sudo tail -f /var/log/emerge.log
</pre>


<p>Related posts<ol><li><a href='http://www.wiredrevolution.com/commands/view-program-output-with-watch' rel='bookmark' title='Permanent Link: View program output with watch'>View program output with watch</a></li>
<li><a href='http://www.wiredrevolution.com/gentoo/speed-up-gentoo-emerge-with-parallel-fetch' rel='bookmark' title='Permanent Link: Speed up Gentoo emerge with &#8220;parallel-fetch&#8221;'>Speed up Gentoo emerge with &#8220;parallel-fetch&#8221;</a></li>
<li><a href='http://www.wiredrevolution.com/bash-programming/find-the-exit-status-of-a-previous-command-in-bash' rel='bookmark' title='Permanent Link: Find the exit status of a previous command in Bash'>Find the exit status of a previous command in Bash</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.wiredrevolution.com/gentoo/view-the-status-of-a-long-emerge/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>View program output with watch</title>
		<link>http://www.wiredrevolution.com/commands/view-program-output-with-watch?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=view-program-output-with-watch</link>
		<comments>http://www.wiredrevolution.com/commands/view-program-output-with-watch#comments</comments>
		<pubDate>Mon, 06 Oct 2008 12:35:31 +0000</pubDate>
		<dc:creator>Ryan</dc:creator>
				<category><![CDATA[commands]]></category>
		<category><![CDATA[watch]]></category>

		<guid isPermaLink="false">http://www.wiredrevolution.com/?p=227</guid>
		<description><![CDATA[<img src="http://www.wiredrevolution.com/wp-content/uploads/commands_icon.png" width="80" height="69" alt="" title="commands" /><br/>Watch runs a program at regular interval and continuously displays the output. This allows you keep track of the changes that are occurring in the program over time. Run watch in the following way. watch [options] command By default watch updates the command output every 2 seconds. To change this interval us the &#8216;-n seconds&#8216; [...]


Related posts<ol><li><a href='http://www.wiredrevolution.com/gentoo/view-the-status-of-a-long-emerge' rel='bookmark' title='Permanent Link: View the status of a long emerge'>View the status of a long emerge</a></li>
<li><a href='http://www.wiredrevolution.com/commands/view-dynamic-library-dependencies-with-ldd' rel='bookmark' title='Permanent Link: View dynamic library dependencies with ldd'>View dynamic library dependencies with ldd</a></li>
<li><a href='http://www.wiredrevolution.com/commands/view-real-time-system-statistics-with-top' rel='bookmark' title='Permanent Link: View real-time system statistics with top'>View real-time system statistics with top</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<img src="http://www.wiredrevolution.com/wp-content/uploads/commands_icon.png" width="80" height="69" alt="" title="commands" /><br/><p>Watch runs a program at regular interval and continuously displays the output. This allows you keep track of the changes that are occurring in the program over time.  </p>
<p>Run watch in the following way.</p>
<pre>
watch [options] <em>command</em>
</pre>
<p>By default watch updates the command output every 2 seconds.  To change this interval us the &#8216;<strong>-n seconds</strong>&#8216; option.</p>
<p>This will keep an eye on the changes occurring in your home directory. This will update the command output every second.</p>
<pre>
$ watch -n 1 ls -l ~/
</pre>
<p>If you use the &#8216;<strong>-d</strong>&#8216; option, watch will highlight the differences between the current and previous update. Adding  &#8216;<strong>-d=cumulative</strong>&#8216; will make the highlights permanent, allowing you to see what has changed throughout the entire run.</p>
<pre>
$ watch -d=cumulative ls -l ~/
</pre>
<p>String longer commands together by enclosing them in single quotes.</p>
<pre>
$ watch 'cat logfile | grep somestring'
</pre>
<p>Watch will continue to run until you exit the program by pressing <strong>Ctrl-C</strong>. </p>


<p>Related posts<ol><li><a href='http://www.wiredrevolution.com/gentoo/view-the-status-of-a-long-emerge' rel='bookmark' title='Permanent Link: View the status of a long emerge'>View the status of a long emerge</a></li>
<li><a href='http://www.wiredrevolution.com/commands/view-dynamic-library-dependencies-with-ldd' rel='bookmark' title='Permanent Link: View dynamic library dependencies with ldd'>View dynamic library dependencies with ldd</a></li>
<li><a href='http://www.wiredrevolution.com/commands/view-real-time-system-statistics-with-top' rel='bookmark' title='Permanent Link: View real-time system statistics with top'>View real-time system statistics with top</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.wiredrevolution.com/commands/view-program-output-with-watch/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

