title: How can I run a rake task via cron?
body: <p>I have and rails application and a rake task which I'm going to execute by cron around once in an hour. But the thing is that the task uses rails environment and some classes of my rails application. If I run it as ruby script, I'll have to include all the dependencies it uses and I think it's not possible to do it correctly and in a simple way. So I'll have to run  it as a rake task because it'll preserve all the dependencies, right? Then how can I run a rake task from cron?</p>
  
  <p>Note that I prefer not to use any third-party solution when there's no necessity, in  this case I don't want to use the gem whenever or the like.</p>