On Fri, 9 Feb 2001, g3pb wrote:
> i am reposting this hoping someone will be able to assist. the following
> script works but not all the time. i can monitor the port the script
> connects to and i can see that some of the transmitted data is lost; ie.
> 'omshow trk trafhr dogdid' becomes 'omshw trk trafhr dogdid'
>
> is there a way to slow down the transmission of characters or some other
> methold to assure that what is sent is received?
You can't do this with Net::Telnet, because Telnet assumes TCP will
correctly deliver all information, sooner or later. Telnet lets TCP/IP
handle all of the network details. If this is not happening, your network
connection is broken. I don't see how much network activity is happening
successfully in that situation. (Are you getting just parts of web pages?
Can you upload anything using FTP? Does your email program work?) My
guess is you don't really have a network connection, you are just trying
to fool Net::Telnet into shooting data out of a port of some sort.
You can't use Net::Telnet for this. (Well, you could loop over each
letter with a 1 second sleep time in between.) Try a CommToolbox XCMD or
XFCN to talk to a serial port, or fix the network connection, or find a
tool that talks to the port at a much lower level, and therefore doesn't
assume that error-correction is in place. I'm not suggesting the tools
you need are readily available; for some ports and versions of MacOS and
types of hardware, there may not be an easy way. There's a reason why
people like using a normal Internet connection--it takes care of all that
mess.
--
MattLangford