Hi, there

How can I capture a error massage from the STD IO?
For instance, I have a program call foo.exe and i run the program
./foo.exe

Then the program prints out some error messages.

How can I write a script that capture the errors and save then into a
file?
-- 
Posted via http://www.ruby-forum.com/.