Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not getting any output #2

Open
johnjelinek opened this issue Oct 30, 2013 · 2 comments
Open

Not getting any output #2

johnjelinek opened this issue Oct 30, 2013 · 2 comments

Comments

@johnjelinek
Copy link

$ winrm-cli cmd --computer localhost --username vagrant --password vagrant dir
WARNING: Could not load IOV methods. Check your GSSAPI C library for an update
WARNING: Could not load AEAD methods. Check your GSSAPI C library for an update
$ winrm-cli script --computer localhost --username vagrant --password vagrant ls
WARNING: Could not load IOV methods. Check your GSSAPI C library for an update
WARNING: Could not load AEAD methods. Check your GSSAPI C library for an update
error: undefined method `chars' for nil:NilClass. Use --trace to view backtrace
@johnjelinek
Copy link
Author

Is this designed to only execute commands/scripts, but not produce output to my terminal window?

@johnjelinek
Copy link
Author

No, I don't think that is the case because of this block

def output_callbacks(session)
  # create some callbacks
  session.on_output do |host, data|
    $stdout.puts data
end

https://github.com/WinRb/winrm-cli/blob/master/bin/winrm-cli#L22-L26

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant