Execute script with Ruby on Rails?

Posted by yuval on Stack Overflow See other posts from Stack Overflow or by yuval
Published on 2010-06-01T03:53:19Z Indexed on 2010/06/01 4:03 UTC
Read the original article Hit count: 258

I want to start my daemon with my application.

In the command line, I can write something like lib/daemons/mydaemon_ctl start to start up my daemon, but I have to do this manually. I want the daemon to start when I start my server (i.e. when the initializer files are loaded).

Is there a ruby command for executing a command line? Something like exec "lib/daemons/mydaemon_ctl start"?

Thanks!

© Stack Overflow or respective owner

Related posts about ruby-on-rails

Related posts about ruby