On Mon, Apr 13, 2009 at 7:41 AM, cheshire137 <[email protected]> wrote:
> The tutorials I've seen for beanstalkd all involve message passing.
> I'd like to be able to do something like beanstalk.system('my
> command') and get back a process ID for the forked process.  I was
> using Spawn (http://github.com/thoughtbot/spawn/tree/master) but
> thought beanstalkd might be more suited to my needs because I don't
> need extra instances of ActiveRecord created.
>
> Is beanstalkd intended for this type of usage?

Not really. You're probably better off with a fork/exec and setting up
a pipe for the output of the subprocess. I don't know if there is a
nice library to do it for you, but it's only a few syscalls anyway.

kr

P.S. Sorry about the delayed response.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"beanstalk-talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/beanstalk-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to