From: Chris Hulan Date: 2008-01-31T05:04:57+09:00 Subject: Re: Capture stdout and stderr from another process On Jan 30, 10:15 am, Marcus Bristav wrote: > I want to > > 1. Start another (lengthy) process/command from a ruby script > 2. Capture whatever that process is writing to stdout and stderr separately > 3. At the samt time give feedback to the console on what is happening > (ie I don't want all information at the end, I want it as it is > available, maybe to a callback or so...) > 4. Do it on windows > > Possible? How if so? Look at Win32-Process (http://rubyforge.org/docman/view.php/85/1720/ Process.html) or win32-open3 (http://rubyforge.org/docman/view.php/85/128/open3.txt)