Skip to content

Instantly share code, notes, and snippets.

@patroza
Created May 9, 2010 11:40
Show Gist options
  • Save patroza/395104 to your computer and use it in GitHub Desktop.
Save patroza/395104 to your computer and use it in GitHub Desktop.
require 'open3'
puts "Ctrl-C should work now"
sleep 5
Open3.popen3("echo 'Now ctrl-C wont work no more'") { |io_in, io_out, io_err, waith_thr| puts io_out.read; puts io_err.read }
sleep 20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment