Shashank Date wrote:

>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
>
Thanks Shashank,

I do not have the win32/open3 available. I will download and install. 
Although if I say:

require 'Open3'

fin,fout,ferr = Open3.popen3( 'gzip --version' )

I get a fork error.

Zach