From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Perry Smith Newsgroups: gmane.emacs.help Subject: Re: keyboard macro to record scp (password) Date: Mon, 11 Jul 2011 07:24:49 -0500 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1310387202 4843 80.91.229.12 (11 Jul 2011 12:26:42 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 11 Jul 2011 12:26:42 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: C K Kashyap Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Jul 11 14:26:38 2011 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QgFZM-0000Df-LO for geh-help-gnu-emacs@m.gmane.org; Mon, 11 Jul 2011 14:26:36 +0200 Original-Received: from localhost ([::1]:48600 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QgFZL-0007vA-Lv for geh-help-gnu-emacs@m.gmane.org; Mon, 11 Jul 2011 08:26:35 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:41504) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QgFXk-0007uq-2Y for help-gnu-emacs@gnu.org; Mon, 11 Jul 2011 08:24:57 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QgFXi-0001X0-JG for help-gnu-emacs@gnu.org; Mon, 11 Jul 2011 08:24:55 -0400 Original-Received: from mail-iy0-f169.google.com ([209.85.210.169]:65313) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QgFXi-0001Wv-6I for help-gnu-emacs@gnu.org; Mon, 11 Jul 2011 08:24:54 -0400 Original-Received: by iyl8 with SMTP id 8so4257525iyl.0 for ; Mon, 11 Jul 2011 05:24:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=subject:mime-version:content-type:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to:x-mailer; bh=QQVQ3go6yrBZoYd1GB0dBbmnveftfCYWx52SmdCF2YE=; b=KYHB70sv88Djf1TUs8Qm44B83t96+EpFNtVs4Hkg4Sbe8P+rSvPBZt1prIVQpwNl+k HKd3eNxtXVVo42LAhr3K40doV4k6jYBci3wK61hyGwk/6vd0VB9jgr5/czQ33Y6zLtEX JxVw2OuY/4La9FJf9CCRzwXaOLq4jMpGR6ofE= Original-Received: by 10.231.49.211 with SMTP id w19mr4304994ibf.145.1310387092808; Mon, 11 Jul 2011 05:24:52 -0700 (PDT) Original-Received: from [10.0.0.4] ([64.128.19.234]) by mx.google.com with ESMTPS id c2sm5343180ibd.56.2011.07.11.05.24.51 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 11 Jul 2011 05:24:52 -0700 (PDT) In-Reply-To: X-Mailer: Apple Mail (2.1084) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 209.85.210.169 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:81537 Archived-At: On Jul 11, 2011, at 6:00 AM, C K Kashyap wrote: > Hi, > I need to do scp multiple times (and in this case, authorized_keys = thingy is not an option). I tried to record a keyboard macro to record = the scp action - including the password entry - but that does not seem = to work. The password gets typed even before the its prompted for. How = do I get around this? A few others have replied along the ssh / tramp lines. As far as the = password, sometimes you can do sit-for to get simple interactions to = work. I'm also not clear what "scp multiple times" means. Are you going to = intermediate hosts? e.g. A =3D> B and then B =3D> C ? pedz