Thank you for you quickly response thanos!

I have updates... first of all, my fellow monk, apologizes this young grasshopper. My command line have a lot of e-mails, and I forgot to escape them in my test script. So part of the problem is solved: the "More? " is coming in the result, and the waitfor is working. NICE.

However, in the ideal world, I shouldn't be concerned about a command line with 1024 chars limitation, this is awkward. The "More? " shouldn't NEVER be asked... So I'm opened to ideas that fix this. So I checked the max_buffer_length and returned its default value: 1048576 bytes, 1 MiB. Well, I'm not sure, but I suspect this behavior should be on server side.

Regarding about why telnet, your're absolutely right. AFAIK, the best option should be SSH. But this server is maintained by another team, I'll ask them if it is possible to change to SSH. Thanks for minding about this.

I'm still working on print and waitfor... updates will come.


In reply to Re^2: Telnet command with more than 1024 chars (updated) by ElectricCheese
in thread Telnet command with more than 1024 chars by ElectricCheese

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.