Correct me if im not wrong as long as its running on a single thread, there should be no confusion in terms of sequence.
Just run them in sequence and they should work fine. long_command1 long_command2 long_command3 long_command4 The only cache is if all the commands are running in a single process and has no external dependencies. On Fri, Jan 23, 2015 at 10:32 AM, Jason Hsu, Rubyist <jhsu802...@gmail.com> wrote: > THE EASY PART: > I have four Ruby commands in a Ruby script that need to be executed in the > following order: > 1. long_command1 > 2. long_command2 > 3. long_command3 > 4. long_command4 > > THE HARD PART: > How do I make sure that the Ruby script finishes one command before moving > on to the next one? long_command1 needs to be completed before > long_command2 can begin, long_command2 needs to be completed before > long_command3 can begin, and long_command3 needs to be completed before > long_command4 can begin. > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to rubyonrails-talk+unsubscr...@googlegroups.com. > To post to this group, send email to rubyonrails-talk@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/rubyonrails-talk/225a9432-3b33-4650-a5b0-8095409e403a%40googlegroups.com > <https://groups.google.com/d/msgid/rubyonrails-talk/225a9432-3b33-4650-a5b0-8095409e403a%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscr...@googlegroups.com. To post to this group, send email to rubyonrails-talk@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAFKVRj8SXWCaUgyVd6C1p3ckmvBSQth%3DR5YjRqeYQuDm7JY0sg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.