Help to send a key or space to telnet?

Hi guys, someone can help me with telnet?

How to send an space or other letter to it?
After sending the command it gets blocked and is disconnected by timeout, I’ve tried after host.print(65.chr) but not work.

I’m stuck at this output:

SPACE for next page, CR for next line, A for all, Q

require ‘net/telnet’

host = Net::Telnet::new(
    'Host'  =>  '',
    'Port'  =>   23)

host.login('admin', 'admin')

host.cmd('port description list 1/1/1') do |c|
  print c

Sorry my english and thanks if someone help me.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs