Im trying to find the best way to help create a SSH node scenario and when inside the pseudo-terminal to then act as After the command executes capture that response from output and Wait until you expect a $ or prompt for that type of device.
Start SSHlogin ------- [ expect $]---[ run CMD1]---[view results] exit ssh etc ----- [END SSH]
I simulated a super basic flow Idea. NOTE (this shows as http-in and http-out but this is SSH Start and SSH-Finish as a mockup (not including Wait for or Expect {chars})
Scenario could be going into a linux device run 2-3 commands Based on the output of cmd2 do Different testing or more . restart services etc etc.
I thought a Cool idea stemming from @BartButenaers awesome xTerm app [node-red-contrib-xterm]
my thought is Maybe simulate the ssh-start-end but also usinng xterm to view it execute live on the right side while Testing....
So it can test and perform on screen so while building this flow then when complete or) then it is safe to run but during flow build time we can take session over and maybe properly exit device if stuck so no Stuck SSH sessions.