Hi
Could you pls let me know how I can send in keystrokes such as ENTER and
ESC to a telnet session. I have the session created using
Net::Telnet.new().
On Nov 26, 2009, at 06:28 , Babu Raj wrote:
Could you pls let me know how I can send in keystrokes such as ENTER and
ESC to a telnet session. I have the session created using
Net::Telnet.new().
Depends on what you’re trying to do. Either something like this:
or you want to look at expect.rb.
Babu Raj wrote:
Hi
Could you pls let me know how I can send in keystrokes such as ENTER and
ESC to a telnet session. I have the session created using
Net::Telnet.new().
Have you tried
sess.puts
sess.print “\x1b”
?