Gets response to command executed.
Namespace: Jscape.TelnetAssembly: Jscape.Telnet (in Jscape.Telnet.dll) Version: 2.6.1.0
Syntax
C# |
---|
public string GetResponse() |
Visual Basic |
---|
Public Function GetResponse As String |
Visual C++ |
---|
public: String^ GetResponse() |
Return Value
Response from TELNET server for the command executed.
Remarks
Response will be empty if command has not executed.
Examples
To check a response to a command, invoke the GetResponse method. In this
example, sh_exec is the task to check for a response.
CopyGetResponse
CopyGetResponse

// sh_exec task complete - check response for 'Success' string if(sh_exec.GetResponse().IndexOf("Success") != -1) { // other process }

' sh_exec task complete - check response for 'Success' string If (sh_exec.GetResponse().IndexOf("Success") != -1) Then ' other process End If