laziness, impatience, and hubris | |
PerlMonks |
Maximum length of commands in Net::Telnet packageby deba (Initiate) |
on Jun 09, 2004 at 12:30 UTC ( [id://362700]=perlquestion: print w/replies, xml ) | Need Help?? |
deba has asked for the wisdom of the Perl Monks concerning the following question:
It seems cmd or print methods of Net::Telnet package can handle at most 255 characters. Beyond that the command is truncated. The behaviour is reproducible both on Solaris 8 and AIX 5.1. with latest versions of perl and Telnet package. Suspect the problem with _put method where it calls syswrite. Has anybody found any similar problem? Is it a feature of telnet protocol or a genuine bug? I couldn't find any logged bug for this scenerio. Our current approach is to break the command string to smaller chunks and send again and again using put function. But a preferable way would be to specify max command length as a parameter like timeout. A test program is pasted Could somebody enlighten me on this issue? Thanks and regards, Debashish.
Back to
Seekers of Perl Wisdom
|
|