Execute commands

Hi,

I’m trying to make an app to control a set of machines, and I need to
executes linux commands for it. I’ve been looking for in Google…

How can I execute system commands with Rails and control the commands
output???

How can I find a good tutorial about threads???

Thanks,
Juanjo

Juan José Vidal Agustín [email protected]
ATICA - Universidad de Murcia

Juan José Vidal Agustín wrote:

I’m trying to make an app to control a set of machines, and I need to
executes linux commands for it. I’ve been looking for in Google…

How can I execute system commands with Rails and control the commands
output???
module Kernel - RDoc Documentation

How can I find a good tutorial about threads???
http://rubycentral.com/book/tut_threads.html

You’re lucky Juan!

The application is already written for you!

It’s called Capistrano.

http://manuals.rubyonrails.com/read/book/17


– Tom M.

Capistrano would be a good solution if you wanted
to run a program (any type of program, not necessarily
Rails) on groups of machines simultaneously.


– Tom M.

Tom M. wrote:

The application is already written for you!

It’s called Capistrano.

Hi Tom,

Would Capistrano be the good way to generate bind confs from a db for a
bulk of domain names ? I’d like to run a task each 15 mins to dump db
data if changed, and reload bind conf.


Jean-Christophe M.