Executes a command on the Remote Host.
Result, as byte array, from Remote Host.
This example returns the results of a directory listing command executed on the Remote Host. Substitute a valid Remote Host and user for the hostname and username parameters.
[C#]
Rsh rsh = new Rsh();
byte[] response = rsh.Execute("hostname", "username", "ls -al");
string data = rsh.Encoding.GetString(response);
Console.WriteLine(data);
[Visual Basic]
Private WithEvents rsh As Rsh
rsh = New Rsh
Dim response As Byte() = rsh.Execute("hostname", "username", "ls -al")
Dim data As String = rsh.Encoding.GetString(response)
Console.WriteLine(data)
Rsh Class | Jscape.Telnet Namespace | Rsh.Execute Overload List