Asp Forum
Home
|
Login
|
Register
|
Search
Forums
>
comp.lang.ruby
telnet and redirection of stream
Marcin Tyman
7/20/2007 1:51:00 PM
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
--
Posted via
http://www.ruby-...
.
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
telnet and redirection of stream
Inserendo la tua e-mail nella casella sotto, riceverai un avviso tramite posta elettronica ogni volta che il motore di ricerca troverà un nuovo messaggio per te
Il servizio è completamente GRATUITO!
x
Login to ForumsZone
Login with Google
Login with E-Mail & Password