Forum: Ruby on Rails Execute commands

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
E962ae295d82a05193cc180c12bda5d8?d=identicon&s=25 Juan =?ISO-8859-1?Q?Jos=E9?= Vidal =?ISO-8859-1?Q? (Guest)
on 2006-04-27 10:44
(Received via mailing list)
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
Ad7805c9fcc1f13efc6ed11251a6c4d2?d=identicon&s=25 Alex Young (Guest)
on 2006-04-27 10:56
(Received via mailing list)
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
59de94a56fd2c198f33d9515d1c05961?d=identicon&s=25 Tom Mornini (Guest)
on 2006-04-27 11:11
(Received via mailing list)
You're lucky Juan!

The application is already written for you!

It's called Capistrano.

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

--
-- Tom Mornini
Eb96620826312516bb4a2d6deeee6688?d=identicon&s=25 Jean-Christophe Michel (Guest)
on 2006-04-27 17:21
(Received via mailing list)
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
59de94a56fd2c198f33d9515d1c05961?d=identicon&s=25 Tom Mornini (Guest)
on 2006-04-27 18:19
(Received via mailing list)
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
This topic is locked and can not be replied to.