[SGVLUG] Automating (scripting) telnet
Dustin Laurence
dustin at dogbert.laurences.net
Tue Feb 21 12:34:18 PST 2006
On Tue, Feb 21, 2006 at 12:28:15PM -0800, Emerson, Tom wrote:
> If I just "feed" this to telnet, i.e., "telnet <cmds", it doesn't work -- telnet doesn't seem to "wait" for the server to actually be "ready for input" before sending the commands -- it might see "user <me>", for instance, but only get "last-half-of-password>" as the next "command" since my client would have started sending it before the server responded with "OK, hello <you><crlf>".
>
> any thoughts?
What about "Expect?" I haven't really used it but I gather that's
exactly what it does--wait for text and respond to it appropriately.
Dustin
More information about the SGVLUG
mailing list