Forum: Ruby telnet and redirection of stream

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
024df81c5a19da7762f694e801518af5?d=identicon&s=25 Marcin Tyman (sirtyman)
on 2007-07-20 15:50
Here is my command:

t.cmd('String' => "echo -e '#{buffer}' > #{data['cfgwlan']}.tmp",
'Timeout' => 10, 'Match' => "#{data['match']}")

t - telnet object (used several times in my code)
#{buffer} - is string to redirect
#{data['cfgwlan']}.tmp - file path/name
#{data['match']} - prompt (is ok because I use it several more times in
my code)

The problem is that the command always ends on timeout. What is wrong
with it. Any other command executed exactly with the same way ends ok
with matching prompt.

Any help will be helpful.
This topic is locked and can not be replied to.