Ask a Question related to PERL Modules, Design and Development.
-
rfolden #1
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
-
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... -
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,... -
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... -
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... -
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... -
James Willmore #2
Re: Telnet character limit?
On Mon, 14 Jun 2004 19:32:38 +0000, rfolden wrote:
If memory serves correctly, there's an example in the Net::Telnet> 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?
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
-
rfolden #3
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...The> 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.>> > 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
-
Unregistered #4
Telnet character limit?
I ran into the same problem, and could not find a ready answer anywhere, so dug through the CPAN documentation.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?
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



Reply With Quote

