rcris001
asked on
Sending <shift><ctrl><6> key sequence (net::telnet::cisco)
I'm using Perl and net::telnet::cisco to run some scripts against a list of Cisco devices. At one point in the script, I change the IP address of a device and my session hangs up for about 9 minutes until it times out. I'd like to be able to send a break sequence to the device to kill the session.. Basically, what I need to do is send the key sequence <shift><ctrl><6> to the device. Syntax for N::T::C command as follows:
$ntc1->cmd('command');
Any suggestions? Thanks - Rich
$ntc1->cmd('command');
Any suggestions? Thanks - Rich
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
$ntc1->cmd("\c^");
Or possibly (should be the same as above):
$ntc1->cmd(chr(30));
Hope that helps and let me know if it doesn't work, I'm sure we can find a different way.