How to automate telnet session using Expect?

后端 未结 4 1164
一个人的身影
一个人的身影 2020-12-19 06:56

I\'m trying to write an expect script to automate telnet. This is what I have so far.

#!/usr/bin/expect
# Test expect script to telnet.

spawn telnet 10.62.         


        
4条回答
  •  眼角桃花
    2020-12-19 07:20

    Have you seen this StackOverflow Question?

    He seems to have got things working by using curly braces.

提交回复
热议问题