Internet Direct (Indy)
Home
PreviousUpNext
TIdRemoteCMDClient.Execute Method

This is an abstract method that is overridden in descendant classes.

Pascal
function Execute(
    ACommand: String
): String; virtual;
Parameters 
Description 
ACommand 
The command to execute on the remote system. 

String - Results for the command executed in the remote daemon.

Execute is a virtual method that is overridden in descendant classes. 

TIdRexec and TIdRSH override this function to call internal protected methods using the command for the remote daemon. Execute is implmented in this manner because RSH uses the user's local User ID and the user's User ID on the remote host as part of it's authentication. Rexec requires the user's User ID on the remote machine and the password for authentication. 

The return value for the method contains the results from execution of the command, or an empty string if an error occurs. 

In TIdRemoteCMDClient, Execute always returns a blank string.

Internet Direct (Indy) version 10.1.5
Copyright © 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Website http://www.indyproject.org.
Post feedback to the Indy Documentation newsgroup.