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 <juanjova@um.es> 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???http://www.ruby-doc.org/core/classes/Kernel.html#M002981> How can I find a good tutorial about threads???http://rubycentral.com/book/tut_threads.html -- Alex
You''re lucky Juan! The application is already written for you! It''s called Capistrano. http://manuals.rubyonrails.com/read/book/17 -- -- Tom Mornini On Apr 27, 2006, at 1:42 AM, Juan Jos? Vidal Agust?n wrote:> 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 <juanjova@um.es> > ATICA - Universidad de Murcia > > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails
Tom Mornini 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 Michel
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 Mornini On Apr 27, 2006, at 8:14 AM, Jean-Christophe Michel wrote:> Tom Mornini 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 Michel > > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails