Skip to content

Instantly share code, notes, and snippets.

View kwerle's full-sized avatar

Kurt Werle kwerle

View GitHub Profile
require 'rubygems'
require "open4"
require "stringio"
require "ruby-debug"
Open4::popen4("./muchoutput") do |pid, stdin, stdout, stderr|
# stdin.puts "echo 42.out"
# stdin.puts "echo 42.err 1>&2"
stdin.close