How do I call shell commands from inside of a Ruby program? How do I then get output from these commands back into Ruby?
My favourite is Open3
require "open3" Open3.popen3('nroff -man') { |stdin, stdout, stderr| ... }