Hello, I'm fairly new to Ruby so sorry if this is a basic question.
I'm trying to have a script that runs at all times, pulling tasks from a
queue. I'd like to then be able to run another script from the console
that adds a tasks to the array being used by the first script.
So my question is, what sort of method could be used to accomplish
something like this? And guidance as to what I should be looking up
would be greatly appreciated.
I'm feeling its related to events, interrupts, threading, etc, but I'm
inexperienced with these concepts, suggestions for guides that would be
helpful would be greatly appreciated as well.
Thanks in advance for any help!
···
--
Posted via http://www.ruby-forum.com/.
There's a whole book about this:
Distributed Programming with Ruby --
<http://www.amazon.com/Distributed-Programming-Ruby-Mark-Bates/dp/0321638360>In
short, you could have a look at the dRb library or similar.
If you can please forgive the shameful self-promotion, I would recommend
having a look at the following review of the above-mentioned book, which
contains some useful on this matter
Fabio Cevasco
···
=======================
web: http://www.h3rald.com
twitter: http://twitter.com/h3rald
On Wed, Feb 2, 2011 at 4:58 PM, John Detloff <jmdetloff@gmail.com> wrote:
Hello, I'm fairly new to Ruby so sorry if this is a basic question.
I'm trying to have a script that runs at all times, pulling tasks from a
queue. I'd like to then be able to run another script from the console
that adds a tasks to the array being used by the first script.
So my question is, what sort of method could be used to accomplish
something like this? And guidance as to what I should be looking up
would be greatly appreciated.
I'm feeling its related to events, interrupts, threading, etc, but I'm
inexperienced with these concepts, suggestions for guides that would be
helpful would be greatly appreciated as well.
Thanks in advance for any help!
--
Posted via http://www.ruby-forum.com/\.
Fabio Cevasco wrote in post #979169:
There's a whole book about this:
Distributed Programming with Ruby --
http://www.amazon.com/Distributed-Programming-Ruby-Mark-Bates/dp/0321638360
<http://www.amazon.com/Distributed-Programming-Ruby-Mark-Bates/dp/0321638360>In
short, you could have a look at the dRb library or similar.
If you can please forgive the shameful self-promotion, I would recommend
having a look at the following review of the above-mentioned book, which
contains some useful on this matter
Book Review: Distributed Programming with Ruby - H3RALD
Fabio Cevasco
web: http://www.h3rald.com
twitter: http://twitter.com/h3rald
Thanks, that was just the guidance I needed to get me started in the
right direction : )
···
--
Posted via http://www.ruby-forum.com/\.