Episode #485: Subprocesses Part 10: Open Pipe

Have you ever used the shell to pipe output from one program into another? In this episode, you'll learn how to take control of this process from inside the source program. You'll see how a surprising trick of Ruby's open() call can open a subprocess as if it were a writable file, and how to use that subprocess as a replacement standard-output stream.

This page is just for members. Sign in or subscribe to gain access!