I have run into some types of specialized telecom equipment that have very poorly built command line interpreter. Command line interpreter was running on the same execution thread that does call processing, so the characters of the command should be typed into terminal very slowly, one by one, to minimize a chance the character will be lost by the command interpreter in the remote equipment. To handle such poor design, I had to modify original gco.pl function to send command line to remote host slowly, char by char, waiting 0.5 seconds before sending every next char.
I have commented out line 26 (old way of sending command to remote host) and replaced it by the cycle in lines 27-31 (new way of sending command to remote host). New file is called gco2.pl
. To download gco2.pl
click here.
To be able to use this function in any PERL plugin simply add following line in the beginning of the plugin code:
require "./plug/perl/gco2.pl";
This line is assuming that .
in path to gco2.pl
file is referring to Proxy32 startup directory (which is made current directory for any PLUGIN process). Before including this line, please, download file "gco2.pl
and place it into subdirectory plug/perl
inside of the proxy32 startup directory.
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 |
|