Watson1978
5/18/2011 - 6:18 AM

MacRuby : Kernel.spawn

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