Re: Simple expect question
Glynn Clements <[email protected]>
| Newsgroups | gmane.linux.admin |
|---|---|
| Message-ID | <[email protected]> |
urgrue wrote: > I'm trying to make a simple script that will do with telnet what one can > do with ssh when you do "ssh hostname command". iow: > telnet somehost command > > then it should, using expect (presumably), telnet into somehost, prompt > me interactively for the username/password, and after successfully > logging in run the command specified on somehost. The Wikipedia page for Expect uses this task as its first example: http://en.wikipedia.org/wiki/Expect -- Glynn Clements <[email protected]> - To unsubscribe from this list: send the line "unsubscribe linux-admin" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html