From: Harold Hausman Date: 2007-02-22T16:40:32+09:00 Subject: IO.popen on Windows to filter stdout Hello all, I've been googling and playing with this for a while, but I'm stuck and I figured I'd ask in case anyone's done this before. I'd like to use IO.popen, or something similar, to 'filter' the spew coming from another programs stdout. I think I understand that I can capture the stdout stream returned by IO.popen by using .readlines, etc... But it still seems that the sub process is writing the output directly to $stdout... Of course, this is on windows, so I don't have proper fork, etc... Is there a way to somehow "swallow" the stdout from the sub process so it doesn't make it directly to the ruby process' stdout? Thanks in advance for any insight, -Harold