Event when one remote command has finished #296
-
| 
         Hi pkittenis, Thx for your work! I have to run commands that do not terminate on multiple remotes. While browsing the documentation, try:
    client.join(output, timeout=5)
except Timeout as ex:
    # Some commands timed out
    finished_output = ex.args[2]
    unfinished_output = ex.args[3]
else:
    # No timeout, all commands finished within five seconds
    finished_output = output
    unfinished_output = Noneand checking if  Regards  | 
  
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
| 
         Hi, Thanks for the interest. Short answer is no. Callback support is tracked by #275. It could be done client side by spawning callback greenlets on top of  Can similarly do something other than print in the callback. 
  | 
  
Beta Was this translation helpful? Give feedback.
Hi,
Thanks for the interest. Short answer is no. Callback support is tracked by #275.
It could be done client side by spawning callback greenlets on top of
SSHClient.wait_finished. Eg, something like:Can similarly do something other than print in the callback.
wait_finishedwill block the current greenlet. Anything afte…