On Jan 1, 2007, at 6:28 PM, Michael P. Soulier wrote:
> On 1/1/07, Robert James <srobertjames / gmail.com> wrote:
>> A similar question: assuming a standard Ruby install (that is, no
>> popen4), what's the most robust way of running a shell command and
>> capturing STDOUT and STDERR?
>> `command 2>&1` seems to not always work on Windows.
>
> And it won't. That's bourne-shell syntax.

It's also cmd.exe syntax, so it /should/ work in Windows, too.

http://www.microsoft.com/technet/archive/winntas/deploy/prodspecs/ 
shellscr.mspx?mfr=true

TomP