< Ruby Programming < Standard Library

You’ll notice there’s IO.popen but not IO.popen3. Do a require 'open3' to get that one (like Open3.popen3).

The difference between popen and popen3 is that popen3 provides you access to the input and output streams of the process. Note also that if one of the pipes passed to you get written to (by the process) a lot, it might block, so you'll need to read from those streams.

This article is issued from Wikibooks. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.