T
Ted Flethuseo
Hi everyone,
I am trying to run a script from ruby, but it produces some output to
STDERR. It isn't capturing that output. How do I capture it?
file = File.open("my.txt", "w")
arr.each do |e|
file.puts `./script.sh #{e}`
end
Ted.
I am trying to run a script from ruby, but it produces some output to
STDERR. It isn't capturing that output. How do I capture it?
file = File.open("my.txt", "w")
arr.each do |e|
file.puts `./script.sh #{e}`
end
Ted.