Skip to content

Instantly share code, notes, and snippets.

@epitron
Created August 1, 2015 22:11
Show Gist options
  • Save epitron/0f29efdf5f7022da5ad0 to your computer and use it in GitHub Desktop.
Save epitron/0f29efdf5f7022da5ad0 to your computer and use it in GitHub Desktop.
r, w = IO.pipe
Process.run("less", 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