# Execute commands

**URL:** <https://www.ruby-forum.com/t/execute-commands/58942>\
**Category:** Rails\
**Created:** [April 27, 2006, 10:44am UTC](https://www.ruby-forum.com/t/execute-commands/58942 "2006-04-27T10:44:04Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [April 27, 2006, 10:44am UTC](https://www.ruby-forum.com/t/execute-commands/58942/1 "2006-04-27T10:44:04Z")

</div>

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 [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
ATICA - Universidad de Murcia

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [April 27, 2006, 10:56am UTC](https://www.ruby-forum.com/t/execute-commands/58942/2 "2006-04-27T10:56:24Z")

</div>

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](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](http://rubycentral.com/book/tut_threads.html)

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [April 27, 2006, 11:11am UTC](https://www.ruby-forum.com/t/execute-commands/58942/3 "2006-04-27T11:11:57Z")

</div>

You’re lucky Juan!

The application is already written for you!

It’s called Capistrano.

[http://manuals.rubyonrails.com/read/book/17](http://manuals.rubyonrails.com/read/book/17)

–  
– Tom M.

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [April 27, 2006, 6:19pm UTC](https://www.ruby-forum.com/t/execute-commands/58942/4 "2006-04-27T18:19:50Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [April 27, 2006, 5:21pm UTC](https://www.ruby-forum.com/t/execute-commands/58942/5 "2006-04-27T17:21:15Z")

</div>

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.
