Project

General

Profile

Bug #11909 » prova2.rb

pierisimone (Simone Pieri), 12/30/2015 10:10 AM

 
cmd = "ruby /tmp/prova6.rb"
o = []
puts "Parent is #{Process.pid}"
puts 'Parent eseguo: '+cmd
IO.popen(cmd) { |f|
"Parent cmd ended ..."
o = f.readlines
o.each {|x| puts x}
}
(6-6/7)