If you're unsure whether either your script or the remote server are saying what you think they should be saying, you could set up a proxy and watch the network transaction as it takes place. A very handy tool for that is socat, execute:
socat -v tcp4-listen:4242 tcp4:remote.server.com:23
and point your script at port 4242 on your local host. This should show you what is going on.
In reply to Re: Expect problems
by tirwhan
in thread Expect problems
by sunadmn
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |