Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Process does not terminate after 'interact' #5

Open
rovf opened this issue Apr 9, 2014 · 0 comments
Open

Process does not terminate after 'interact' #5

rovf opened this issue Apr 9, 2014 · 0 comments

Comments

@rovf
Copy link

rovf commented Apr 9, 2014

This is a small program demonstrating the problem:

require 'expect4r'
require 'misc/shell'
cmd='ssh -2 -i my_key_file.prk -l my_user some_host'
sh=Expect4r::Shell.new
sh.spawn(cmd)
sh.interact
puts 'FINISHED'

The program works fine so far; it logs into the remote host, and interact lets me communicate with the host. I then type 'exit' to leave the ssh shell, and type Control-T to terminate the interaction. The program outputs 'FINISHED'.

However, I don't get a prompt anymore, and no matter what I enter, I see no response. Only if I enter Control-Z to stop my process, I get back to the prompt.

Environment: Windows 7, Cygwin, Ruby 1.9

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant