This week's book giveaway is in the Jython/Python forum.
We're giving away four copies of Murach's Python Programming and have Michael Urban and Joel Murach on-line!
See this thread for details.
Win a copy of Murach's Python Programming this week in the Jython/Python forum!
    Bookmark Topic Watch Topic
  • New Topic

Running expect4j in an SSH environment  RSS feed

 
Anthony Schmitt
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Report post to moderator
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);


 
Jeff Verdegan
Bartender
Posts: 6109
6
Android IntelliJ IDE Java
 
    Bookmark Topic Watch Topic
  • New Topic
Boost this thread!