Cancelling a task

Top  Previous  Next

A SshTask will continue to run until it has encountered it's specified end prompt. In certain conditions it's possible that the end prompt may never return. Typically this is due to an error returned by the shell when running the task that does not match your specified end prompt. In these cases you may need to cancel the current SshTask so as to continue your programs execution. To cancel a task invoke the SshTask#cancel method.

 

Example

 

// cancel the task

task.cancel();





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

© 2021 JSCAPE LLC