Getting a task response |
Under certain conditions you may want to see the data received from the SSH server while the task was executing. To get this data retrieve the SshTask.Response property. Note: The value returned by SshTask.Response may change if the task has not yet completed.
Example
[C#]
// wait until last task is complete
while(!task2.IsComplete) {
Thread.Sleep(100);
}
// print out results of task2
Console.WriteLine(task2.Response);
[VB]
' wait until last task is complete
While Not task2.IsComplete
Thread.Sleep(100)
End While
' print out results of task2
Console.WriteLine(task2.Response)