General conceptual question

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!

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/0321638360In
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 :slight_smile:

http://www.h3rald.com/articles/distributed-programming-with-ruby-review/

Fabio C.

web: http://www.h3rald.com
twitter: http://twitter.com/h3rald

Fabio C. 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/0321638360In
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 :slight_smile:

http://www.h3rald.com/articles/distributed-programming-with-ruby-review/

Fabio C.

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 : )