I'm trying to login to SSH normally, then send six digits to my server, get a response, run expect4j code that matches regex and responds.
My code is almost working, save for that fact that my six digits and following response are being processed by my later expect4j code, and I don't know why.
This is the last line that gets processed before it hands off:
expect.expect("\r\nDestination: ", loginClosure);