From: Marcin Tyman Date: 2007-07-24T16:13:39+09:00 Subject: Telnet issue hi guys, I've got issue with following: ######################################################### begin t.cmd('String' => "echo -e '#{buffer}' > #{data['cfgwlan']}.tmp", 'Timeout' => 10, 'Match' => "#{data['match']}") rescue TimeoutError, Timeout::Error => e myLogger.error("#{__FILE__} #{__LINE__} Exception: #{e.backtrace.join()}") end #begin ######################################################### buffer - is a string data['cfgwlan'] - is file path with file_name t - is telnet object and works correctly with other commands. But in this case t.cmd causes Timeout::Error exception all the time but data['cfgwlan'] is each time is overwritten correctly. Looks like that after echo -e '#{buffer}' > #{data['cfgwlan']}.tmp none of prompt has been appearing and the command ends on timeout. What is wrong with it? Any help would be helpful. Thanks in advance. MT -- Posted via http://www.ruby-forum.com/.