TELNET and waitfor problems

G

Guest

I am using perl's telnet to collect data on a TL1 connection, the waitfor
option doesn't seem to work:

$telnet->print('ACT-USER:AAACSV_5000:TEST:A1::TEST1;');
$telnet->waitfor('/;/');
$telnet->print('CSVRTRV-MVISVC:AAACSV_5000::A1:::USED:1:1,2048;');

The second print command is issued without waiting for the semicolon.

Any suggestions?

Thanks,

George
 
J

Jay Rogers

I am using perl's telnet to collect data on a TL1 connection, the waitfor
option doesn't seem to work:

$telnet->print('ACT-USER:AAACSV_5000:TEST:A1::TEST1;');
$telnet->waitfor('/;/');

This is likely matching the semi-colon in your echo'd back
command, not the semi-colon ending command output. Perhaps this
would work better:

($lines) = $self->waitfor('/\n;/');

TL1 is a poorly designed interface. Also remember that in TL1,
autonomous messages can spew at anytime and that command output
over a certain size is broken up into continuation messages.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,537
Members
45,023
Latest member
websitedesig25

Latest Threads

Top