commit | 1ad869928ac41be8c7edb060522dc1e12235eda6 | [log] [tgz] |
---|---|---|
author | Klaus Kämpf <kkaempf@suse.de> | Wed Oct 07 15:07:28 2015 +0200 |
committer | Klaus Kämpf <kkaempf@suse.de> | Wed Oct 14 14:45:51 2015 +0200 |
tree | fe3b16198e2edf5f54dfbb9db0744b1591e29fa2 | |
parent | 2e9b31e61cd4849a55de66be40789f06cb06560d [diff] |
print final exit code to stderr
diff --git a/examples/winrs.rb b/examples/winrs.rb index 47711f3..6bf3e4b 100644 --- a/examples/winrs.rb +++ b/examples/winrs.rb
@@ -252,7 +252,7 @@ when "http://schemas.microsoft.com/wbem/wsman/1/windows/shell/CommandState/Done" exit_code = node.get "ExitCode" if exit_code - puts "Exit code: #{exit_code.text}" + STDERR.puts "Exit code: #{exit_code.text}" else STDERR.puts "***Err: No exit code for 'done' command: #{node.to_xml}" end