I use Expect to automate the interaction with some devices on telnet or ssh. For example, restarting the Wi-Fi access point when the connection is hung up, or reading incoming SMS from the GSM-gateway. Everything works perfectly.
But today I am faced with the fact that I can’t force Expect to...
Dear all,
How can I not generate the substring ...[C[C[C[0k after issued comands trough expect scripts?
For example, I have the following lines in an expect script:
#set variables, parameters etc
...
spawn telnet $IP $PORT
expect -nocase "name:"
send -- "$USER\r"
expect -nocase "password:"
send...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.