title: Running another ruby script from a ruby script
body: <p>In ruby, is it possible to specify to call another ruby script using the same ruby interpreter as the original script is being run by?</p>
  
  <p>For example, if a.rb runs b.rb a couple of times, is it possible to replace</p>
  
  <pre><code>system("ruby", "b.rb", "foo", "bar")
  </code></pre>
  
  <p>with something like</p>
  
  <pre><code>run_ruby("b.rb", "foo", "bar")
  </code></pre>
  
  <p>so that if you used <code>ruby1.9.1 a.rb</code> on the original, <code>ruby1.9.1</code> would be used on b.rb, but if you just used <code>ruby a.rb</code> on the original, <code>ruby</code> would be used on b.rb?</p>
  
  <p>I'd prefer not to use shebangs, as I'd like it to be able to run on different computers, some of which don't have <code>/usr/bin/env</code>.</p>
  
  <p><strong>Edit:</strong> I didn't mean <code>load</code> or <code>require</code> and the like, but spawning new processes (so I can use multiple CPUs).</p>