How do I run multiple ruby scripts sequentially on my local machine?

Posted by marcamillion on Stack Overflow See other posts from Stack Overflow or by marcamillion
Published on 2012-12-05T22:05:51Z Indexed on 2012/12/05 23:04 UTC
Read the original article Hit count: 171

Filed under:
|

I have about 5 or 6 ruby scripts I want to run, right after each other. These are all on my local machine (OS X) and won't be run on a server.

Each takes about 15 minutes to run, and I don't want to have to wait for each one to finish before running the others manually.

Without using something as heavy as delayed_job or some other queueing gem, how can I achieve this?

Or should I go through the hassle of setting up sidekiq or something else?

Thanks.

P.S. It would be nice to restart the script if one of them times out (I am doing web crawling, so keeping an HTTP connection open sometimes gives me issues) - which happens occasionally.

© Stack Overflow or respective owner

Related posts about ruby

Related posts about delayed-job