Command Property

The command to be sent to the remote host.

Syntax

public String getCommand();
public void setCommand(String command);

Remarks

Assigning a UNIX command to this property makes the component attempt to connect to the RemoteHost and execute the command using the rexec 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)


RexecControl.Command = "cd /home/username/; ls -al; cd/; ls"

Default Value

""

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