Executing an Rexec Command

Top  Previous  Next

The process flow for establishing a connection and executing a command on a remote host is as follows:

 

1.Create a new Rexec instance.
2.Create a byte array to receive the response of the Execute method and pass the remote host hostname, username, password, and command to the Execute method.

 

Upon invoking the Rexec.Execute method a TCP connection will be established with the remote host.

 

After the remote connection is established and the command executed on the remote host, the byte array will contain the remote host response.

 

Note

 

Using the Rexec class differs from using the Rsh class in that the Rexec class performs a full login while the Rsh class is strictly based on a Remote Host authentication configuration.

 

 

See also

 

Remote Host authentication





Home | Company | Products | Solutions | Purchase | Support | Services | Blog

© 2021 JSCAPE LLC