in reply to Expect problems
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.
|
|---|