And I got some question about that...
Is that just support one character of change inside each square brackets?
How can I define "with space" or "no space" case?
In my situation, I need to login to difference server by using that same expect script. Some of the server using "ftp>", and some using "ftp >"
As your suggestion, I'm trying to expect "ftp\>"
but it seem doesn't work in this case. Am I missing something?