on_stderr Event

Fired when data (complete lines) come in through stderr.

Syntax

class RexecStderrEventParams(object):
  @property
  def text() -> bytes: ...
  @property
  def eol() -> bool: ...

# In class Rexec:
@property
def on_stderr() -> Callable[[RexecStderrEventParams], None]: ...
@on_stderr.setter
def on_stderr(event_hook: Callable[[RexecStderrEventParams], None]) -> None: ...

Remarks

The on_stderr event is fired every time the process on the remote host outputs a line in its error output. The incoming data is provided through the Text parameter.

EOL indicates whether the err_eol string was found on the end of Text or not. If the err_eol string was found then EOL is True, otherwise it is False.

When the error stream is closed by the server, a string containing only one NULL character is delivered through this event.

Copyright (c) 2022 /n software inc. - All rights reserved.
IPWorks 2020 Python Edition - Version 20.0 [Build 8161]