linux-admin.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Glynn Clements <glynn@gclements.plus.com>
To: urgrue <urgrue@bulbous.org>
Cc: linux-admin@vger.kernel.org
Subject: Re: Simple expect question
Date: Mon, 13 Nov 2006 15:05:07 +0000	[thread overview]
Message-ID: <17752.35235.916053.978782@cerise.gclements.plus.com> (raw)
In-Reply-To: <45587F96.1000409@bulbous.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 <glynn@gclements.plus.com>

  reply	other threads:[~2006-11-13 15:05 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-11-13 14:22 Simple expect question urgrue
2006-11-13 15:05 ` Glynn Clements [this message]
2006-11-13 19:28   ` Freddie
2006-11-14 11:09     ` Glynn Clements

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=17752.35235.916053.978782@cerise.gclements.plus.com \
    --to=glynn@gclements.plus.com \
    --cc=linux-admin@vger.kernel.org \
    --cc=urgrue@bulbous.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).