Ok I figured it out.

basically it's
open("|command name", "w")

then it outputs its standard out to stdout, but accepts stdin from you 
(if you have any other ways to effect the same thing, do let me know).
Thanks!
-r

-- 
Posted via http://www.ruby-forum.com/.