From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Suvayu Ali Newsgroups: gmane.emacs.help Subject: Re: keyboard macro to record scp (password) Date: Tue, 12 Jul 2011 10:47:15 +0200 Message-ID: <20110712104715.40502805@kuru.homelinux.net> References: <87mxgkexh5.fsf@gmx.de> <4E1B0E7C.7050700@dogan.se> <20110712082345.0341d8f2@kuru.homelinux.net> <20110712084027.319e36f8@kuru.homelinux.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1310460564 25885 80.91.229.12 (12 Jul 2011 08:49:24 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 12 Jul 2011 08:49:24 +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 Tue Jul 12 10:49:19 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 1QgYed-0004AU-8M for geh-help-gnu-emacs@m.gmane.org; Tue, 12 Jul 2011 10:49:19 +0200 Original-Received: from localhost ([::1]:45605 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QgYeb-0002dA-NP for geh-help-gnu-emacs@m.gmane.org; Tue, 12 Jul 2011 04:49:17 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:59649) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QgYcl-0002cf-Rz for help-gnu-emacs@gnu.org; Tue, 12 Jul 2011 04:47:25 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QgYcj-0002Nu-6d for help-gnu-emacs@gnu.org; Tue, 12 Jul 2011 04:47:23 -0400 Original-Received: from mail-ew0-f41.google.com ([209.85.215.41]:59236) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QgYci-0002NE-JE for help-gnu-emacs@gnu.org; Tue, 12 Jul 2011 04:47:20 -0400 Original-Received: by ewy9 with SMTP id 9so1797601ewy.0 for ; Tue, 12 Jul 2011 01:47:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=sender:date:from:to:cc:subject:message-id:in-reply-to:references :x-mailer:mime-version:content-type:content-transfer-encoding; bh=oNUkJRiHLNEiO2VZVCNDvsei+4UT+MasRWX175+9qgs=; b=NrCYh0B6iNkYvDzUJYX+NJVzPzuDSLsCSPZbO4A28LTOeyHnamagjXgfrWgvnoLXXL XKsYvDZ0ziBXWJUNHN7qkpmZpZMlzesVVUZ2QwhXaD4/effAiylvQPUCCD3/ne1Gcg9H hUejufJeGmTnsb7XTjmeJv6NyPqun5MRvxABg= Original-Received: by 10.213.29.147 with SMTP id q19mr942072ebc.39.1310460438293; Tue, 12 Jul 2011 01:47:18 -0700 (PDT) Original-Received: from kuru.homelinux.net (ip82-139-118-43.lijbrandt.net [82.139.118.43]) by mx.google.com with ESMTPS id u51sm1420934eeb.53.2011.07.12.01.47.17 (version=SSLv3 cipher=OTHER); Tue, 12 Jul 2011 01:47:18 -0700 (PDT) In-Reply-To: X-Mailer: Claws Mail 3.7.9 (GTK+ 2.22.0; x86_64-redhat-linux-gnu) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 209.85.215.41 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:81554 Archived-At: On Tue, 12 Jul 2011 12:37:05 +0530 C K Kashyap wrote: > Let me generalize this a bit - I'd like to automate interactive > command line apps. Is there a generic solution in emacs for this. I think you are looking for a solution in the wrong place. You want a solution for terminal utilities, this is best achieved using facilities present in the terminal. You have a number of options: 1. public key authentication 2. ssh-agent (which is probably related with public keys, haven't used myself so not sure about the details) 3. sshfs network mounts with fuse 4. NFS mounts Apart from this, on the Emacs side you could try: 1. you could try what Michael suggested about pasword-cache 2. dired over tramp might work However I think the main problem might be your development methodology. It seems to me it could be better adapted so that you don't need to scp so many times. If you are having to do that, then that is probably not the optimum solution. If you could outline what you are doing step by step, maybe someone here could suggest alternate ways of achieving the same goal. GL -- Suvayu Open source is the future. It sets us free.