MacRuby : Kernel.spawn
# test for MacRuby in_c, in_p = IO.pipe opt = {:in => in_c } args = "" pid = spawn("ruby", args, opt) in_p.write "puts 1234" in_p.close Process.wait pid