From: Glynn Clements Subject: Re: Simple expect question Date: Mon, 13 Nov 2006 15:05:07 +0000 Message-ID: <17752.35235.916053.978782@cerise.gclements.plus.com> References: <45587F96.1000409@bulbous.org> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <45587F96.1000409@bulbous.org> Sender: linux-admin-owner@vger.kernel.org List-Id: Content-Type: text/plain; charset="us-ascii" To: urgrue Cc: linux-admin@vger.kernel.org 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