From: Avery Rozar Date: 2013-08-08T12:22:28+02:00 Subject: net/telnet haning on pasword Hello all, I'm getting stuck at the @password portion. This script will get into the Cisco ASA, but doesn't seem to enter in the password. Any help is greatly appreciated. begin session = Net::Telnet::new('Host' => @hostname, 'Timeout' => 10, 'Telnetmode' => false, verbose: :debug) session.waitfor('Prompt' => /Username/) session.cmd(@username) { |c| print c } session.waitfor('Prompt' => /Password/) session.cmd(@password) { |c| print c } session.waitfor(/>/) session.cmd(@cmd + '\n') { |c| print c } session.close end Debug output: arozar Password: Uncaught exception: timed out while waiting for more data /Users/averyrozar/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/net/telnet.rb:558:in `waitfor' /Users/averyrozar/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/net/telnet.rb:695:in `cmd' /Users/averyrozar/Ruby-Scripts/tools/telnet-tool.rb:44:in `' Process finished with exit code 0 -- Posted via http://www.ruby-forum.com/.