Project

General

Profile

Bug #11909 » prova2.rb

pierisimone (Simone Pieri), 12/28/2015 03:36 PM

 
cmd = "ruby /root/prova5.rb"
o = []
puts "Parent is #{Process.pid}"
puts 'Parent eseguo: '+cmd
begin
IO.popen(cmd) { |f|
o = f.readlines
o.each {|x| puts x}
}
rescue => e
puts "Parent child error="+e.message
end

(2-2/7)