On 1/26/07, Jonathan Denni <jonsdenni / gmail.com> wrote:
> lets say I have three programs
>
> Main.rb
> Sub1.rb
> and
> Sub2.rb
>
> When I run Main.rb, I want it to access and run the other two ruby
> programs. How do I do this?
>

If you just want to run them one at a time and wait, you can do this;

trya.rb
puts "a"
sleep 3
system("ruby tryb.rb")
system("ruby tryc.rb")
sleep 3

tryb.rb
puts "b"
sleep 3

tryc.rb
puts "c"

-- 
http://www.kakueki.com/ruby/list.html