<?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>Think In Geek &#187; bash</title>
	<atom:link href="http://thinkingeek.com/tag/bash/feed/" rel="self" type="application/rss+xml" />
	<link>http://thinkingeek.com</link>
	<description>In geek we trust</description>
	<lastBuildDate>Sat, 19 Jun 2010 22:00:55 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Killing all rails logs with one Ctrl+C?</title>
		<link>http://thinkingeek.com/2007/09/08/killing-all-rails-logs-with-one-ctrlc/</link>
		<comments>http://thinkingeek.com/2007/09/08/killing-all-rails-logs-with-one-ctrlc/#comments</comments>
		<pubDate>Sat, 08 Sep 2007 17:28:12 +0000</pubDate>
		<dc:creator>jsegura</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[ruby on rails]]></category>
		<category><![CDATA[tips and tricks]]></category>

		<guid isPermaLink="false">http://thinkingeek.com/?p=76</guid>
		<description><![CDATA[Well, this is my first post after holidays and it won&#8217;t be very long. Imagine you are developing a rails application. Usually you have: a terminal with the server to see what petitions are received. a terminal with a tail of development.log to see what happens with the database. a terminal with a tail of [...]]]></description>
			<content:encoded><![CDATA[<p>Well, this is my first post after holidays and it won&#8217;t be very long.</p>
<p>Imagine you are developing a rails application. Usually you have:</p>
<ul>
<li>a terminal with the server to see what petitions are received.</li>
<li> a terminal with a tail of development.log to see what happens with the database.</li>
<li> a terminal with a tail of test.log if you are testing something.</li>
</ul>
<p>
This are a <strong>lot</strong> of windows&#8230; And the other day one friends was very happy and after asking for a while I discovered that the reason was the simple line showed above&#8230; With only one <strong>Ctrl+C</strong> you can kill all this processes <img src='http://thinkingeek.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">script<span style="color: #000000; font-weight: bold;">/</span>server <span style="color: #000000; font-weight: bold;">&amp;</span> <span style="color: #c20cb9; font-weight: bold;">tail</span> <span style="color: #660033;">-f</span> log<span style="color: #000000; font-weight: bold;">/</span>development.log <span style="color: #000000; font-weight: bold;">&amp;</span> <span style="color: #c20cb9; font-weight: bold;">tail</span> <span style="color: #660033;">-f</span> log<span style="color: #000000; font-weight: bold;">/</span>test.log <span style="color: #000000; font-weight: bold;">&amp;</span> <span style="color: #c20cb9; font-weight: bold;">tail</span> <span style="color: #660033;">-f</span> ; <span style="color: #7a0874; font-weight: bold;">jobs</span> <span style="color: #660033;">-p</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">awk</span> <span style="color: #ff0000;">'{print &quot;kill -2 &quot; $0}'</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">sh</span></pre></div></div>

<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fthinkingeek.com%2F2007%2F09%2F08%2Fkilling-all-rails-logs-with-one-ctrlc%2F&amp;linkname=Killing%20all%20rails%20logs%20with%20one%20Ctrl%2BC%3F" onclick="pageTracker._trackPageview('/outgoing/www.addtoany.com/share_save?linkurl=http_3A_2F_2Fthinkingeek.com_2F2007_2F09_2F08_2Fkilling-all-rails-logs-with-one-ctrlc_2F_amp_linkname=Killing_20all_20rails_20logs_20with_20one_20Ctrl_2BC_3F&amp;referer=');"><img src="http://thinkingeek.com/wp-content/plugins/add-to-any/share_save_120_16.gif" width="120" height="16" alt="Share/Bookmark"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://thinkingeek.com/2007/09/08/killing-all-rails-logs-with-one-ctrlc/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
