telnet and redirection of stream

M

Marcin Tyman

Hi,
Here is my command:

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

Where:
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.
Thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,767
Messages
2,569,572
Members
45,046
Latest member
Gavizuho

Latest Threads

Top