Ruby on Rails Saturday, June 30, 2012

On Sat, Jun 30, 2012 at 8:10 AM, Scott Ribe <scott_ribe@elevated-dev.com> wrote:
> - I need to create a daemon process that runs periodically in the background on a server and creates some export files from a database.

A "daemon" process runs continuously; are you sure you don't just
want to use cron? It's made for "periodically" :-)

> - I'd like to write it in Ruby and use ActiveRecord & ERB.

If cron is an option, you could either write a standalone script, a rake
task or use a full Rails installation and `rails runner`.

FWIW,
--
Hassan Schroeder ------------------------ hassan.schroeder@gmail.com
http://about.me/hassanschroeder
twitter: @hassan

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en-US.

No comments:

Post a Comment