Szubrycht Kamil
Ruby Talks #5
http://img.c4learn.com/2010/01/Stdstreams-notitle.svg_.png
exec 'echo "Hello World!"'
exec
system('echo "Hello World!"')
system
`echo "Hello World!"`
backtick
i, o, e, t = Open3.popen3('echo "Hello World!"')
popen3
Open3.popen3('echo "Hello World!"') do |i, o, e, t|
puts "stdout: #{o.read}"
puts "stderr: #{e.read}"
t.value.success?
end
popen3