From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: pmlists@free.fr (Peter =?utf-8?Q?M=C3=BCnster?=) Newsgroups: gmane.emacs.help Subject: Re: keyboard macro to record scp (password) Date: Tue, 12 Jul 2011 14:49:55 +0200 Organization: Micropit Message-ID: <8762n71x58.fsf@micropit.couberia.bzh> 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: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: dough.gmane.org 1310475147 16657 80.91.229.12 (12 Jul 2011 12:52:27 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 12 Jul 2011 12:52:27 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jul 12 14:52:23 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 1QgcRq-0001fH-GB for geh-help-gnu-emacs@m.gmane.org; Tue, 12 Jul 2011 14:52:22 +0200 Original-Received: from localhost ([::1]:56266 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QgcRo-0007JP-Uu for geh-help-gnu-emacs@m.gmane.org; Tue, 12 Jul 2011 08:52:21 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:37070) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QgcPr-0007IX-AP for help-gnu-emacs@gnu.org; Tue, 12 Jul 2011 08:50:21 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QgcPo-0003sN-PE for help-gnu-emacs@gnu.org; Tue, 12 Jul 2011 08:50:18 -0400 Original-Received: from lo.gmane.org ([80.91.229.12]:48637) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QgcPn-0003s7-J1 for help-gnu-emacs@gnu.org; Tue, 12 Jul 2011 08:50:16 -0400 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1QgcPg-0000Zy-39 for help-gnu-emacs@gnu.org; Tue, 12 Jul 2011 14:50:08 +0200 Original-Received: from arennes-651-1-106-120.w2-2.abo.wanadoo.fr ([2.2.1.120]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 12 Jul 2011 14:50:08 +0200 Original-Received: from pmlists by arennes-651-1-106-120.w2-2.abo.wanadoo.fr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 12 Jul 2011 14:50:08 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 28 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: arennes-651-1-106-120.w2-2.abo.wanadoo.fr User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:jHd+/PRENPOP1OLJeXrn7W5vvcg= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 80.91.229.12 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:81557 Archived-At: On Tue, Jul 12 2011, C K Kashyap wrote: > (defun fun (n) (progn > (insert "ssh machinename")  > (sleep-for 2) > (insert "password") > ) > ) >   > the above function illustrates my point. When I execute this function, the > sleep happens first and then the complete inserts. IMH emacs is not the right tool for this task. (sleep-for) was just an idea, I don't use shell in emacs. Here some tool suggestions for different tasks: task tool programmed dialogue with interactive programs expect password-less scp public-key auth. / ssh-agent accessing remote files sshfs, tramp, nfs, etc. -- Peter