Skip to content

Instantly share code, notes, and snippets.

@mitchellh
Created March 7, 2012 23:28
Show Gist options
  • Save mitchellh/1997201 to your computer and use it in GitHub Desktop.
Save mitchellh/1997201 to your computer and use it in GitHub Desktop.
vm.channel.execute("tail -f /some/growing/fail") do |type, data|
# type is one of [:stdout, :stderr, :exit_status]
# data is a string for stdout/stderr and an int for exit status
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment