Skip to content

Instantly share code, notes, and snippets.

@ploubser
Created January 31, 2014 15:16
Show Gist options
  • Save ploubser/8733945 to your computer and use it in GitHub Desktop.
Save ploubser/8733945 to your computer and use it in GitHub Desktop.
Try
On a windows machine, start IRB and
> require 'mcollective'
> result = ""
> cmd = MCollective::Shell.new("echo testing", :stdout => result)
> cmd.runcommand
> cmd.stdout
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment