Internet Direct (Indy) Version 9.0.1 Beta
TIdRexec
This class implements Remote Execution (Rexec) as a client.

TIdRexec = class(TIdRemoteCMDClient)
Description
This class implements Unix Remote Execution (Rexec) as a client. The Rexec protocol is sometimes used to run tasks from remote locations while requiring password authentication. This protocol was originally intended as a temporary "hack" in some older Berkeley Unix Distributions that came into wide usage.

Note that while this protocol is a little more secure than RSH, it still can pose a security hazard on the Internet because the User ID and password are sent in plain-text and that can easily be intercepted by someone wanting to run destructive program.

To use this component:

  1. Set the TIdRexec.Host to the I.P. Address or name of the remote machine.

  2. Set the TIdRexec.UserName to the user's remote User ID

  3. Set the TIdRexec.Password to the user's password

  4. Use the TIdRexec.Execute method with the command to run on the remote machine