Created
March 13, 2012 20:48
-
-
Save sarguru/2031474 to your computer and use it in GitHub Desktop.
trying out popen4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'open4' | |
tests = $stdin.readlines | |
pid,stdin,cstdout,stderr = open4::popen4 'a/really/odd/program' | |
stdin.puts tests | |
cstdout.puts "i need to put this to fd1" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment