<?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>SmartLogic Solutions Blog &#187; logs</title>
	<atom:link href="http://blog.smartlogicsolutions.com/tag/logs/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.smartlogicsolutions.com</link>
	<description>News and updates from the people at SmartLogic Solutions</description>
	<lastBuildDate>Tue, 30 Nov 2010 21:39:14 +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>Watch Multiple Logs in a Single Terminal</title>
		<link>http://blog.smartlogicsolutions.com/2008/11/12/watch-multiple-logs-in-a-single-terminal/</link>
		<comments>http://blog.smartlogicsolutions.com/2008/11/12/watch-multiple-logs-in-a-single-terminal/#comments</comments>
		<pubDate>Wed, 12 Nov 2008 16:53:03 +0000</pubDate>
		<dc:creator>Nick Gauthier</dc:creator>
				<category><![CDATA[Nick Gauthier]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[Ruby on Rails]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[logs]]></category>

		<guid isPermaLink="false">http://blog.smartlogicsolutions.com/?p=363</guid>
		<description><![CDATA[Have you ever opened 4 terminal windows, SSHed each one into a server, and ran tail on all of them to watch 4 log files? Have you ever had a terminal window open whose sole purpose was to run &#8220;tail my_log&#8221; over and over again to look at the output of a file? It&#8217;s a [...]]]></description>
			<content:encoded><![CDATA[<p>Have you ever opened 4 terminal windows, SSHed each one into a server, and ran tail on all of them to watch 4 log files?</p>
<p>Have you ever had a terminal window open whose sole purpose was to run &#8220;tail my_log&#8221; over and over again to look at the output of a file?</p>
<p>It&#8217;s a pain, isn&#8217;t it?</p>
<p>Introducing &#8220;Watch Me&#8221; a simple ruby script that allows you to watch multiple log files simultaneously.</p>
<p>go from this:</p>
<div id="attachment_368" class="wp-caption alignnone" style="width: 310px"><a href="http://blog.smartlogicsolutions.com/wp-content/uploads/2008/11/pre-watchme1.png"><img class="size-medium wp-image-368" title="pre-watchme" src="http://blog.smartlogicsolutions.com/wp-content/uploads/2008/11/pre-watchme1-300x206.png" alt="Before Watch Me" width="300" height="206" /></a><p class="wp-caption-text">Using multiple terminals to watch logs</p></div>
<p>to this:</p>
<div id="attachment_367" class="wp-caption alignnone" style="width: 310px"><a href="http://blog.smartlogicsolutions.com/wp-content/uploads/2008/11/watchme1.png"><img class="size-medium wp-image-367" title="WatchMe" src="http://blog.smartlogicsolutions.com/wp-content/uploads/2008/11/watchme1-300x185.png" alt="Using WatchMe to watch logs" width="300" height="185" /></a><p class="wp-caption-text">Using WatchMe to watch logs</p></div>
<p><span id="more-363"></span></p>
<p>First, <a title="get Watch Me from GitHub" href="http://github.com/ngauthier/watch_me">get Watch Me from github</a>.</p>
<p>Then, try out the example by following these instructions:</p>
<p>1) Open 3 terminal windows in the watch_me directory<br />
2) In the first terminal, run:<br />
$ ./examples/rander.rb &gt; rander.1.log<br />
3) In the second terminal, run:<br />
$ ./examples/rander.rb &gt; rander.2.log<br />
4) In the third terminal, run:<br />
$ ./watch_me.rb rander.1.log rander.2.log</p>
<p>You can customize the behavior with the &#8220;r&#8221; and &#8220;l&#8221; flags.</p>
<p>./watch_me.rb -l 60 -r 1 file1 file2</p>
<p>Will use 60 terminal lines and refresh every 1 second. This lets you see even more of your files, and see it in near real-time.</p>
<p>Enjoy.</p>
<div id="crp_related"><h3>Related Posts:</h3><ul><li><a href="http://blog.smartlogicsolutions.com/2008/10/14/facebox-with-prototype/" rel="bookmark" class="crp_title">Facebox With Prototype</a></li><li><a href="http://blog.smartlogicsolutions.com/2009/05/05/smartlogic-wants-to-clean-up-twitter-introduces-shouldirtcom/" rel="bookmark" class="crp_title">SmartLogic Wants to Clean Up Twitter, Introduces ShouldIRT.com</a></li><li><a href="http://blog.smartlogicsolutions.com/2010/01/22/ubuntu-byobu-landscape/" rel="bookmark" class="crp_title">Using Byobu and Landscape to improve remote Ubuntu sessions</a></li><li><a href="http://blog.smartlogicsolutions.com/2008/08/21/getting-subclipse-to-work-in-gandymede-eclipse-34/" rel="bookmark" class="crp_title">Getting Subclipse to Work in Gandymede (Eclipse 3.4)</a></li><li><a href="http://blog.smartlogicsolutions.com/2008/12/05/introducing-puremvcgen-an-ant-based-puremvc-flex-generator/" rel="bookmark" class="crp_title">Introducing PureMVCGen &#8211; an ANT based PureMVC Flex Generator</a></li><li>Powered by <a href="http://ajaydsouza.com/wordpress/plugins/contextual-related-posts/">Contextual Related Posts</a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://blog.smartlogicsolutions.com/2008/11/12/watch-multiple-logs-in-a-single-terminal/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>

