Skip to content

Instantly share code, notes, and snippets.

@sarguru
Created March 13, 2012 20:48
Show Gist options
  • Save sarguru/2031474 to your computer and use it in GitHub Desktop.
Save sarguru/2031474 to your computer and use it in GitHub Desktop.
trying out popen4
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