<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: rails runner&#8230; with a relative path</title>
	<atom:link href="http://elia.wordpress.com/2008/01/23/rails-runner-with-a-relative-path/feed/" rel="self" type="application/rss+xml" />
	<link>http://elia.wordpress.com/2008/01/23/rails-runner-with-a-relative-path/</link>
	<description>Now there's a man with an open mind: you can feel the breeze from here!</description>
	<lastBuildDate>Fri, 06 Nov 2009 22:05:16 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Andrej</title>
		<link>http://elia.wordpress.com/2008/01/23/rails-runner-with-a-relative-path/#comment-1495</link>
		<dc:creator>Andrej</dc:creator>
		<pubDate>Thu, 04 Dec 2008 17:11:16 +0000</pubDate>
		<guid isPermaLink="false">http://elia.wordpress.com/2008/01/23/rails-runner-with-a-relative-path/#comment-1495</guid>
		<description>This one works, uses default environment. If you want to override the environment, set ENV(&#039;RAILS_ENV&#039;)

--------
#!/usr/bin/env ruby
require File.dirname(__FILE__) + &#039;/../config/boot&#039;
require RAILS_ROOT + &#039;/config/environment&#039;

puts &quot;Running in environment #{RAILS_ENV}...&quot;

(your code goes here)</description>
		<content:encoded><![CDATA[<p>This one works, uses default environment. If you want to override the environment, set ENV(&#8216;RAILS_ENV&#8217;)</p>
<p>&#8212;&#8212;&#8211;<br />
#!/usr/bin/env ruby<br />
require File.dirname(__FILE__) + &#8216;/../config/boot&#8217;<br />
require RAILS_ROOT + &#8216;/config/environment&#8217;</p>
<p>puts &#8220;Running in environment #{RAILS_ENV}&#8230;&#8221;</p>
<p>(your code goes here)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andrej</title>
		<link>http://elia.wordpress.com/2008/01/23/rails-runner-with-a-relative-path/#comment-1494</link>
		<dc:creator>Andrej</dc:creator>
		<pubDate>Thu, 04 Dec 2008 16:31:45 +0000</pubDate>
		<guid isPermaLink="false">http://elia.wordpress.com/2008/01/23/rails-runner-with-a-relative-path/#comment-1494</guid>
		<description>your alternative solution runs code twice ;)</description>
		<content:encoded><![CDATA[<p>your alternative solution runs code twice ;)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ~Elia</title>
		<link>http://elia.wordpress.com/2008/01/23/rails-runner-with-a-relative-path/#comment-1490</link>
		<dc:creator>~Elia</dc:creator>
		<pubDate>Mon, 27 Oct 2008 08:51:38 +0000</pubDate>
		<guid isPermaLink="false">http://elia.wordpress.com/2008/01/23/rails-runner-with-a-relative-path/#comment-1490</guid>
		<description>You&#039;re right, thanks for the suggestion! :)</description>
		<content:encoded><![CDATA[<p>You&#8217;re right, thanks for the suggestion! :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Arthaey Angosii</title>
		<link>http://elia.wordpress.com/2008/01/23/rails-runner-with-a-relative-path/#comment-1489</link>
		<dc:creator>Arthaey Angosii</dc:creator>
		<pubDate>Sat, 25 Oct 2008 18:38:53 +0000</pubDate>
		<guid isPermaLink="false">http://elia.wordpress.com/2008/01/23/rails-runner-with-a-relative-path/#comment-1489</guid>
		<description>If you use exec() instead of backticks, STDOUT will continue to work. Otherwise, the backticks will swallow any writes to STDOUT by the rest of the script.</description>
		<content:encoded><![CDATA[<p>If you use exec() instead of backticks, STDOUT will continue to work. Otherwise, the backticks will swallow any writes to STDOUT by the rest of the script.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
