Created
January 31, 2014 15:16
-
-
Save ploubser/8733945 to your computer and use it in GitHub Desktop.
Try
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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