From: Ted Flethuseo Date: 2011-02-17T09:04:31+09:00 Subject: capturing stderr for a file 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. -- Posted via http://www.ruby-forum.com/.