<?xml version="1.0" encoding="UTF-8"?>
<blog>
  <comment-count type="integer">0</comment-count>
  <created-at type="datetime">2009-06-17T20:39:05-04:00</created-at>
  <file></file>
  <id type="integer">30</id>
  <published type="boolean">true</published>
  <story>&lt;p&gt;After reading the &lt;a href='http://railscasts.com/episodes/164-cron-in-ruby'&gt;Railscast&lt;/a&gt; about &lt;a href='http://github.com/javan/whenever/tree/master'&gt;javan-whenever&lt;/a&gt;, a great ruby gem that allows you to write &lt;a href='http://en.wikipedia.org/wiki/Cron'&gt;cron&lt;/a&gt; jobs in highly readable ruby with an impossible to forget syntax (compared to the daunting obliqueness of straight cron), I tried to get it running with a site I am working on that is deployed by &lt;a href='http://www.capify.org/'&gt;Capistrano&lt;/a&gt; to &lt;a href='http://aws.amazon.com/ec2/'&gt;ec2&lt;/a&gt; with &lt;a href='http://ec2onrails.rubyforge.org/'&gt;ec2onrails&lt;/a&gt; and requires a number of cron jobs. Troglodyte that I am, it took much headslamming, hair-pulling and full-fledged teary breakdowns before I finally email the person who wrote the gem and he suggested that Capistrano was probably issuing the command as another user other than the one I was trying to get a crontab for. Argh! With his suggestion, this is what I finally found did the job:&lt;/p&gt;

&lt;script src=&quot;http://gist.github.com/131617.js&quot;&gt;&lt;/script&gt;

&lt;p&gt;Apparently, there is also a -user option in whenever that can be used to accomplish similar goals....&lt;/p&gt;</story>
  <title>javan-whenever with ec2onrails</title>
  <updated-at type="datetime">2009-06-17T21:16:37-04:00</updated-at>
</blog>
