all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: C K Kashyap <ckkashyap@gmail.com>
To: "Peter Münster" <pmlists@free.fr>
Cc: help-gnu-emacs@gnu.org
Subject: Re: keyboard macro to record scp (password)
Date: Tue, 12 Jul 2011 15:41:49 +0530	[thread overview]
Message-ID: <CAGdT1gqhk9zAsJoan9fcyeRXMd8tbkSyjwUXxzO817iMYVaROQ@mail.gmail.com> (raw)
In-Reply-To: <8762n8t49a.fsf@micropit.couberia.bzh>

[-- Attachment #1: Type: text/plain, Size: 458 bytes --]

>
> 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

[-- Attachment #2: Type: text/html, Size: 716 bytes --]

  reply	other threads:[~2011-07-12 10:11 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-07-11 11:00 keyboard macro to record scp (password) C K Kashyap
2011-07-11 11:29 ` Michael Albinus
2011-07-11 11:34 ` suvayu ali
2011-07-11 12:24 ` Perry Smith
2011-07-11 13:09   ` C K Kashyap
2011-07-11 13:52     ` Michael Albinus
2011-07-11 14:02       ` C K Kashyap
2011-07-11 14:20         ` Michael Albinus
2011-07-11 14:53         ` Deniz Dogan
2011-07-11 18:06           ` suvayu ali
2011-07-12  5:19             ` C K Kashyap
2011-07-12  6:14               ` Peter Münster
2011-07-12 10:11                 ` C K Kashyap [this message]
2011-07-12 10:50                   ` C K Kashyap
2011-07-12 12:49                     ` Peter Münster
2011-07-12  6:23               ` Suvayu Ali
2011-07-12  6:29                 ` C K Kashyap
2011-07-12  6:40                   ` Suvayu Ali
2011-07-12  7:07                     ` C K Kashyap
2011-07-12  8:47                       ` Suvayu Ali
2011-07-12  7:22                   ` Michael Albinus
2011-07-12  7:19               ` Michael Albinus

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=CAGdT1gqhk9zAsJoan9fcyeRXMd8tbkSyjwUXxzO817iMYVaROQ@mail.gmail.com \
    --to=ckkashyap@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=pmlists@free.fr \
    /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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.