command Property
The command to be sent to the remote host.
Syntax
def get_command() -> str: ... def set_command(value: str) -> None: ...
command = property(get_command, set_command)
Default Value
""
Remarks
This property contains the command to be sent to the remote host. Assigning a UNIX command to this property makes the class attempt to connect to the remote_host and execute the command using the rshell protocol. There is no need to append an end-of-line character to the command.
If "" (empty string) is assigned to the command property, the current connection is broken.
Example (Execute a Command)
RshellControl.Command = "cd /home/username/; ls -al; cd/; ls"