Internet Direct (Indy) Version 9.0.2 Beta
|
function Execute(ACommand: String): String; override;
This method authenticates to the Rexec Deamon with the TIdExec.UserName and the TIdRexec.Password and than executes a command (ACommand) on the Rexec Deamon. This is only intended for non-interactive processes where the no input is expected from the user.
If an error occurred, TIdRemoteCMD.ErrorReply is set to true and the TIdRemoteCMD.ErrorMessage contains the message returned from the Rexec Deamon. The inherited TIdRemoteCMDClient.UseStdError property effects how error messages are sent from the Rexec Deamon.