Skip to content

Instantly share code, notes, and snippets.

@epitron
Created August 1, 2015 22:21
Show Gist options
  • Save epitron/0c3a08fba2a7a16e527b to your computer and use it in GitHub Desktop.
Save epitron/0c3a08fba2a7a16e527b to your computer and use it in GitHub Desktop.
r, w = IO.pipe
Process.run("cat", input: r)
100.times { w.puts "hello" }
w.close
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment