Host Output

Output module of ParallelSSH

class pssh.output.HostOutput(host, cmd, channel, stdout, stderr, stdin, exit_code=None, exception=None)

Class to hold host output

  • host (str) – Host name output is for
  • cmd (gevent.Greenlet) – Command execution object
  • channel (socket.socket compatible object) – SSH channel used for command execution
  • stdout (generator) – Standard output buffer
  • stderr (generator) – Standard error buffer
  • stdin (file()-like object) – Standard input buffer
  • exit_code (int or None) – Exit code of command
  • exception (Exception or None) – Exception from host if any

Override of dict update function for backwards compatibility