H
Harold Hausman
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
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