Updated mcollective.init according to OSCI-658
[packages/precise/mcollective.git] / lib / mcollective / vendor / systemu / samples / e.rb
diff --git a/lib/mcollective/vendor/systemu/samples/e.rb b/lib/mcollective/vendor/systemu/samples/e.rb
new file mode 100644 (file)
index 0000000..2c26e62
--- /dev/null
@@ -0,0 +1,9 @@
+#
+# any environment vars specified are merged into the child's environment
+#
+  require 'systemu'
+
+  env = %q( ruby -r yaml -e"  puts ENV[ 'answer' ] " )
+
+  status = systemu env, 1=>stdout='', 'env'=>{ 'answer' => 0b101010 }
+  puts stdout