cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
499
Views
0
Helpful
3
Replies

Expect and Terminal Server connections

wiwells
Level 1
Level 1

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.

3 Replies 3

amritpatek
Level 6
Level 6

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.

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!).

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.