Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.ruby > #3077

Re: Telnet "More?"

From "Eric T." <erictetz@gmail.com>
Newsgroups comp.lang.ruby
Subject Re: Telnet "More?"
Date 2011-04-17 20:00 -0500
Organization Service de news de lacave.net
Message-ID <56feb3a19cdca1e267e47ba4161d62d8@ruby-forum.com> (permalink)
References <0bc1be8ec871e5fbad7753c695247ddc@ruby-forum.com> <BANLkTim638b6r89U_xYninSyYUab5kLfew@mail.gmail.com>

Show all headers | View raw


Christopher Dicely wrote in post #993345:
> It looks like the server is sending something other than the default
> prompt and expecting a response; you probably need to handle that
> case.

Yes, but I'm wondering *why* this happens with the Ruby client. It's
hard as hell to search the web for the "More?" response, because search
engines ignore the "?" leaving you search for "More" (pun not indented,
but apropos).

> If you use telnet directly (from the console, not a script) and do the
> same sequence of commands, what happens?

It works fine. It also works fine using the Python client.

But so far, in my extremely superficial comparison of the languages, I'm
liking Ruby better.  I like that regex is a first class citizen (/f?o/i
is a hell of a lot better than re.compile('f?o', re.IGNORECASE)), and I
like the implementation of Ruby's telnet library better (passing blocks
to receive output is a nice touch). Unfortunately, a straight-forward
use of the library is provoking a weird response from the server.

-- 
Posted via http://www.ruby-forum.com/.

Back to comp.lang.ruby | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Telnet "More?" "Eric T." <erictetz@gmail.com> - 2011-04-17 02:10 -0500
  Re: Telnet "More?" Christopher Dicely <cmdicely@gmail.com> - 2011-04-17 09:56 -0500
    Re: Telnet "More?" "Eric T." <erictetz@gmail.com> - 2011-04-17 20:00 -0500
  Re: Telnet "More?" 7stud -- <bbxx789_05ss@yahoo.com> - 2011-04-17 17:47 -0500
    Re: Telnet "More?" "Eric T." <erictetz@gmail.com> - 2011-04-17 19:48 -0500
      Re: Telnet "More?" Christopher Dicely <cmdicely@gmail.com> - 2011-04-18 00:37 -0500
      Re: Telnet "More?" 7stud -- <bbxx789_05ss@yahoo.com> - 2011-04-19 12:21 -0500
  Re: Telnet "More?" "mouser" <invalid@invalid.com> - 2011-04-18 04:18 +0000
    Re: Telnet "More?" "mouser" <invalid@invalid.com> - 2011-04-18 04:22 +0000
  Re: Telnet "More?" Brian Candler <b.candler@pobox.com> - 2011-04-19 04:18 -0500
    Re: Telnet "More?" "mouser" <invalid@invalid.com> - 2011-04-19 16:36 +0000
      Re: Telnet "More?" Markus Fischer <markus@fischer.name> - 2011-04-19 12:12 -0500

csiph-web