Hi Zach,

--- Zach Dennis <zdennis / mktec.com> wrote:

> Has there been a way to capture stdout and stderr
> (most important) on 
> Windows yet?

Will this work for you:

### After installing open3 package from win32utils

require "win32/open3"

cmd = 'dir a*.vvv'
fin,fout,ferr = Open3.popen3(cmd)
fout.each { |line| puts 'OUT:' + line }
ferr.each { |line| puts 'ERR:' + line }

__END__

### produces:

OUT: Volume in drive C is LOCAL
OUT: Volume Serial Number is AC53-D8CC
OUT:
OUT: Directory of C:\atest
OUT:
ERR:File Not Found

I am on Win2K pro using ruby-one-click installer.
HTH,
-- shanko

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com