From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: C K Kashyap Newsgroups: gmane.emacs.help Subject: Re: keyboard macro to record scp (password) Date: Tue, 12 Jul 2011 15:41:49 +0530 Message-ID: References: <87mxgkexh5.fsf@gmx.de> <4E1B0E7C.7050700@dogan.se> <8762n8t49a.fsf@micropit.couberia.bzh> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=00151744845c2e74a904a7dc8776 X-Trace: dough.gmane.org 1310465619 22924 80.91.229.12 (12 Jul 2011 10:13:39 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 12 Jul 2011 10:13:39 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: =?ISO-8859-1?Q?Peter_M=FCnster?= Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jul 12 12:13:34 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 1QgZy8-00059f-Oq for geh-help-gnu-emacs@m.gmane.org; Tue, 12 Jul 2011 12:13:32 +0200 Original-Received: from localhost ([::1]:34653 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QgZy7-0000Ph-Dp for geh-help-gnu-emacs@m.gmane.org; Tue, 12 Jul 2011 06:13:31 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:46216) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QgZwb-0000Oy-Mp for help-gnu-emacs@gnu.org; Tue, 12 Jul 2011 06:11:59 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QgZwX-0003Ac-0D for help-gnu-emacs@gnu.org; Tue, 12 Jul 2011 06:11:57 -0400 Original-Received: from mail-fx0-f52.google.com ([209.85.161.52]:61922) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QgZwW-0003A7-CA for help-gnu-emacs@gnu.org; Tue, 12 Jul 2011 06:11:52 -0400 Original-Received: by fxd18 with SMTP id 18so1044217fxd.39 for ; Tue, 12 Jul 2011 03:11:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=2yigVMlT7irNb7t0RdL6CiJSX8ke4pHRELnGDRxXoRA=; b=YFMKuGMEsXwXJNl1E/yN2guNg0jZHalSqS71iXhn4aaQza9bDpKiBJ8n60Ph2s1tLT dKWdr25oie/4HDHD1KRdMx9ia8+abV+elD4sxrk17mujmSNqC0uSzySgP6vi7G/kdew0 BppsTac0ms2+PIaqJmkvlODdp0JIsv6niIKQU= Original-Received: by 10.223.64.80 with SMTP id d16mr2508941fai.86.1310465509454; Tue, 12 Jul 2011 03:11:49 -0700 (PDT) Original-Received: by 10.223.106.195 with HTTP; Tue, 12 Jul 2011 03:11:49 -0700 (PDT) In-Reply-To: <8762n8t49a.fsf@micropit.couberia.bzh> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 209.85.161.52 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:81555 Archived-At: --00151744845c2e74a904a7dc8776 Content-Type: text/plain; charset=ISO-8859-1 > > 3 ideas: > - expect (password saved somewhere) > - public key authentication > - (sleep-for 1) in macro > > -- > Hi Peter, I tried the (sleep-for 3) idea - there seems to be a problem though - for some reason, when I playback the macro, the sleep happens first and then the whole thing gets typed. What I did was, record the macro and then edit it and insert the M-: (sleep-for 3)C-j right after the return key after the ssh command. regards, Kashyap --00151744845c2e74a904a7dc8776 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
3 ideas:
- expect (password saved somewhere)
- public key authentication
- (sleep-for 1) in macro

--

Hi Peter,
I tried the (sle= ep-for 3) idea - there seems to be a problem though - for some reason, when= I playback the macro, the sleep happens first and then the whole thing get= s typed.=A0

What I did was, record the macro and then edit it and i= nsert the M-: (sleep-for 3)C-j right after the return key after the ssh com= mand.

regards,
Kashyap=A0
--00151744845c2e74a904a7dc8776--