From: Vincent Lambert Date: 2009-02-26T02:23:26+09:00 Subject: Standard error redirection in backquote notation ------_=_NextPart_001_01C9976D.E0B547BA Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hello, We want to capture all the output of an external program that we call from ruby. We use a custom function that sends the command to the system using the backquote notation. 2>&1 is appended at the end of the command line to capture the standard error (which is very important to us). When we add 2>&1, we get the following error messages : 'c:\Program' is not recognized as an internal or external command. Note that we get this error even when the command is surrounded by quotes. Do you have any idea how to get around this problem ? We are using Windows XP. Any help would be greatly appreciated. ----------------------------------------------------- Vincent Lambert XML Programmer Matrox Imaging ------_=_NextPart_001_01C9976D.E0B547BA--