Cancelling a task

Top  Previous  Next

A TelnetTask 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 TelnetTask so as to continue your programs execution. To cancel a task invoke the TelnetTask#cancel method.

 

Example

 

// cancel task

task.cancel();





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

© 2021 JSCAPE LLC