The target is to execute endless ping on Windows host. Command used manually do the job, when executed via SSH Execute Command nothing happen.
Example to local commands usage:
start /b cmd /c “ping -t 10.10.20.20 > pingout.txt”
Command starts pinging the destination until killed, task status is visible via
tasklist -fi “IMAGENAME eq PING.EXE”
And can be abort using taskkill /F /im PING.EXE
When the ping command is executed via SSH library, after connect, there are no errors and Command exited with return code 0.
When trying to check status or killed, the SSH Execute Command returns with: INFO: No tasks are running which match the specified criteria.
The redirect output file is also empty.