07-08-2003 09:51 AM - edited 03-02-2019 08:42 AM
Has anyone had experience using expect to connect through a cisco router configured as a terminal server? I'm interested in finding out how to send the <SHIFT><CTRL>6 key sequence through expect.
07-14-2003 11:06 AM
I have not used Expect as such, but have a url which could be useful. http://expect.nist.gov/
Alternatively, you can use, Hyperterminal to connect to the Terminal server and telnet to the router. you can use the option TCP/IP winsock while connecting . Then the Ctrl+Shift +6 keys can be used.
07-14-2003 11:10 AM
Thank you, I've looked as expect.nist.gov, but I haven't purchased the expect book yet.
Unfortuanely I'm trying to do this function through a set of hands-off scripts, so I don't think the hyperterm option will work out (that is what our Field Engineers use now, but we're trying to protect the system from them!).
07-15-2003 10:10 AM
If you know the ASCII value of the sequence (30??), you could then use the octal value of that and preface it with a "\". For example, if it is 30, then the octal value would be 36 and you could have send "\036". See http://www.hume.com/html83/mann/Tcl.html for more info.
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: