Skip to content

Stdout is going to output file #6

@freb

Description

@freb

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions