From: "Rudá G." Date: 2013-05-08T03:38:13+09:00 Subject: Telnet to a cisco switch I'm trying to connect to a Cisco Switch and execute a few commands. The problem is that it's executing only the first telnet.cmd(). To execute anything else I need to append some command at the end of the first cmd() (separated by \n). Here is my code: telnet = Net::Telnet::new("Host" => CISCO, "Timeout" => 10) telnet.cmd("#{USER}\n#{PASS}") { |c| print c } #works fine telnet.cmd("help") { |c| print c } #nothing happens The second cmd() is not working. How do I fix this? -- Posted via http://www.ruby-forum.com/.