Standard error redirection in backquote notation

V

Vincent Lambert

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,537
Members
45,021
Latest member
AkilahJaim

Latest Threads

Top