on_stdout Event

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

Syntax

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

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

Remarks

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

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

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