Executing an Rsh 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 Rsh instance.

 

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

 

Upon invoking the Rsh.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 Rsh class differs from using the Rexec class in that the Rsh class is strictly based on a Remote Host authentication configuration while the Rexec class performs a full login.

 

 

See also

 

Remote Host authentication





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

© 2021 JSCAPE LLC