Welcome to the Monastery | |
PerlMonks |
Expect.pm CTRL Characters not being recognised by remote deviceby set_uk (Pilgrim) |
on Apr 11, 2007 at 11:08 UTC ( [id://609336]=perlquestion: print w/replies, xml ) | Need Help?? |
set_uk has asked for the wisdom of the Perl Monks concerning the following question:
I have a utility which uses Expect.pm to send commmands to telecomms devices. It works really well most of the time but in some instances i cant get the end device to recognise the control character sequence to disconnect from the device.
I'm quite conversant with the Expect syntax for sending control characters and have tried various permutations but to no avail. When logged in manually to the device when you type:-
Ive also tried sending it using ->send_slow - but its not being recognised. This is running from a Solaris box with TERM=vt220 - telnetting into a Windows telnet server and then using putty plink to rlogin into a remote switch. A colleague of mine uses the same connectivity and an Aspect script to connect to these devices for a different purpose and to disconnect uses the sequence:-
I wonder if anyone else has had an issue with control characters not being acted upon correctly and what their resolution was. Regards Simon
Back to
Seekers of Perl Wisdom
|
|