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

Stdout is going to output file #6

Open
freb opened this issue Sep 14, 2020 · 0 comments
Open

Stdout is going to output file #6

freb opened this issue Sep 14, 2020 · 0 comments

Comments

@freb
Copy link
Collaborator

freb commented Sep 14, 2020

When you use a TTY, all of the output channels are merged, so you no longer get separate stderr/stdout:

https://stackoverflow.com/questions/16838624/why-does-openssh-requesttty-cause-stderr-redirected-to-stdout/16839544#16839544

I think this means that we have a decision to make between:

  1. separate stderr/stdout channels
  2. interactive stdin

Solutions are to:

  1. modify the command to add 2> /dev/null, essentially discarding all stdout, or
  2. update the code to not use stdout to local file, but instead support downloading a file on command completion
  3. Use sed -i '1d' *.xml to remove the first line from the output files (assuming the hostgroup warning on the first line is the only issue)
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