Under certain conditions you may want to create and execute tasks on the fly. An example of such a situation might be when the command for the next task depends on the response of the previous task. Dynamic SshTask usually have a null start prompt value as they are not waiting on data from the SSH server. To illustrate we will use the following use case.
Example
The example below demonstrates the following use case:
1. Login to system
2. Execute "ls -al *.tmp" command to get all files ending in .tmp extension.
3. If response of command contains .tmp (indicating that files with .tmp extension exist) then issue command "rm *.tmp" to delete all temporary files.