Skip to content

Instantly share code, notes, and snippets.

@aurels
Created February 25, 2011 15:45
Show Gist options
  • Save aurels/843967 to your computer and use it in GitHub Desktop.
Save aurels/843967 to your computer and use it in GitHub Desktop.
stream system command output to STDOUT (ruby)
IO.popen('ant run') do |io|
while (line = io.gets) do
puts line
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment