Telnet character limit?

Ask a Question related to PERL Modules, Design and Development.

  1. #1

    Default Telnet character limit?

    I have a perl telnet script which sends commands to a remote VAX host. The
    commands get wrapped around at 80 characters, which cause them to get
    truncated with errors.

    %RMS-F-RER, file read error
    -SYSTEM-W-DATAOVERUN, data overrun

    Anyone have any ideas?


    rfolden Guest

  2. Similar Questions and Discussions

    1. 16 character password limit; need work-around
      Looks like CF7 has a documented 16 character limit on datasource passwords. Our production server password is 18 characters. I brought this up on...
    2. How to limit character output with CFML
      Hi! I need a bit of help... I'm trying to figure out how to limit CFML output to a certain number of characters... On a given page on our site,...
    3. TOC character limit, glitch?
      In creating a table of contents in InDesignCS, it seems to cut entries off at 256 characters. I NEED all of those characters. Is there a setting...
    4. Telnet from Linux to Amiga: Character problems
      I recently set up my Linux PC and my Amiga 4000 to talk to each other over TCP/IP. I can now telnet from the Linux PC to the Amiga and use its...
    5. load limit for Net::telnet cmd and print functions
      I am running a validation test that requires me to synchronize the running and stopping of processes on remote clients to create power spikes in...
  3. #2

    Default Re: Telnet character limit?

    On Mon, 14 Jun 2004 19:32:38 +0000, rfolden wrote:
    > I have a perl telnet script which sends commands to a remote VAX host. The
    > commands get wrapped around at 80 characters, which cause them to get
    > truncated with errors.
    >
    > %RMS-F-RER, file read error
    > -SYSTEM-W-DATAOVERUN, data overrun
    >
    > Anyone have any ideas?
    If memory serves correctly, there's an example in the Net::Telnet
    documentation on how to read a character at a time versus a line at a
    time. It's a little more work, but insures that the buffer is flushed,
    you have control over the way the lines are broken up (think your own line
    wrapping) and each character is read.

    No guarantee this will work, but it's worth a try. Unless, of course,
    this *is* the way you're doing it now (you don't show any code or state
    how you're doing it now :-) ).

    HTH

    --
    Jim

    Copyright notice: all code written by the author in this post is
    released under the GPL. [url]http://www.gnu.org/licenses/gpl.txt[/url]
    for more information.

    a fortune quote ...
    Any two philosophers can tell each other all they know in two
    hours. -- Oliver Wendell Holmes, Jr.

    James Willmore Guest

  4. #3

    Default Re: Telnet character limit?

    I didn't see the character at a time example. However, good point about the
    code. Here is the code I am using:

    sub Send_OneVaxCmd {
    my ($mycmd, $print) = @_;
    my $prematch;
    my $match;
    while (1) {
    $t->print($mycmd);
    ($prematch, $match) = $t->waitfor(Match => '/press
    return.*$/i',
    Match => '/.*\? $/i',
    Match => '/.*\: $/i',
    Match => "/$prompt/");
    if ($print) { print $prematch; };
    last if ($match =~ /$prompt/);
    print $match;
    $mycmd = <$infile>;
    chomp ($mycmd);
    }
    }


    "James Willmore" <jwillmore@remove.adelphia.net> wrote in message
    news:pan.2004.06.15.14.49.29.712066@remove.adelphi a.net...
    > On Mon, 14 Jun 2004 19:32:38 +0000, rfolden wrote:
    >
    > > I have a perl telnet script which sends commands to a remote VAX host.
    The
    > > commands get wrapped around at 80 characters, which cause them to get
    > > truncated with errors.
    > >
    > > %RMS-F-RER, file read error
    > > -SYSTEM-W-DATAOVERUN, data overrun
    > >
    > > Anyone have any ideas?
    >
    > If memory serves correctly, there's an example in the Net::Telnet
    > documentation on how to read a character at a time versus a line at a
    > time. It's a little more work, but insures that the buffer is flushed,
    > you have control over the way the lines are broken up (think your own line
    > wrapping) and each character is read.
    >
    > No guarantee this will work, but it's worth a try. Unless, of course,
    > this *is* the way you're doing it now (you don't show any code or state
    > how you're doing it now :-) ).
    >
    > HTH
    >
    > --
    > Jim
    >
    > Copyright notice: all code written by the author in this post is
    > released under the GPL. [url]http://www.gnu.org/licenses/gpl.txt[/url]
    > for more information.
    >
    > a fortune quote ...
    > Any two philosophers can tell each other all they know in two
    > hours. -- Oliver Wendell Holmes, Jr.
    >

    rfolden Guest

  5. #4

    Default Telnet character limit?

    I have a perl telnet script which sends commands to a remote VAX host. The
    commands get wrapped around at 80 characters, which cause them to get
    truncated with errors.

    %RMS-F-RER, file read error
    -SYSTEM-W-DATAOVERUN, data overrun

    Anyone have any ideas?
    I ran into the same problem, and could not find a ready answer anywhere, so dug through the CPAN documentation.
    One way around this could be to change the output record seperator to null (i.e. Ors => "") while creating a new telnet object, and then break the commands larger than 80 characters into smaller parts and send them. Send a newline character after the whole command is sent.
    Unregistered Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139