Skip to content

Instantly share code, notes, and snippets.

@practicingruby
Created January 3, 2013 22:57
Show Gist options
  • Select an option

  • Save practicingruby/4448270 to your computer and use it in GitHub Desktop.

Select an option

Save practicingruby/4448270 to your computer and use it in GitHub Desktop.
require "open3"
Open3.popen3("cat") do |stdin, stdout|
stdin.puts("HAHAHAHHAA")
puts stdout.gets
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment