From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.help Subject: Re: keyboard macro to record scp (password) Date: Tue, 12 Jul 2011 09:19:24 +0200 Message-ID: <8762n82cg3.fsf@gmx.de> References: <87mxgkexh5.fsf@gmx.de> <4E1B0E7C.7050700@dogan.se> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1310456196 1645 80.91.229.12 (12 Jul 2011 07:36:36 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 12 Jul 2011 07:36:36 +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 09:36:32 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 1QgXWB-0001ZA-GI for geh-help-gnu-emacs@m.gmane.org; Tue, 12 Jul 2011 09:36:31 +0200 Original-Received: from localhost ([::1]:50125 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QgXW9-0004Z8-0h for geh-help-gnu-emacs@m.gmane.org; Tue, 12 Jul 2011 03:36:29 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:37285) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QgXFn-0001j5-Es for help-gnu-emacs@gnu.org; Tue, 12 Jul 2011 03:19:37 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QgXFk-00064H-Tu for help-gnu-emacs@gnu.org; Tue, 12 Jul 2011 03:19:35 -0400 Original-Received: from mailout-de.gmx.net ([213.165.64.22]:37350) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1QgXFk-00063o-08 for help-gnu-emacs@gnu.org; Tue, 12 Jul 2011 03:19:32 -0400 Original-Received: (qmail invoked by alias); 12 Jul 2011 07:19:28 -0000 Original-Received: from p57BB9BA6.dip0.t-ipconnect.de (EHLO detlef.gmx.de) [87.187.155.166] by mail.gmx.net (mp066) with SMTP; 12 Jul 2011 09:19:28 +0200 X-Authenticated: #3708877 X-Provags-ID: V01U2FsdGVkX1+SCEh7X7uSSKb9L3IpHqB56SU0yzQh3DgJo44pYQ qPdT9YjFk0Hz4W In-Reply-To: (C. K. Kashyap's message of "Tue, 12 Jul 2011 10:49:02 +0530") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-Y-GMX-Trusted: 0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 213.165.64.22 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:81552 Archived-At: C K Kashyap writes: > I tried Tramp and its really cool. I am certainly going to use it for > editing remote files. A quick question .... looks like it was > automatically able to cache the password for subsequent C-x C-f =C2=A0- > however, it prompts for password for each M-x shell Tramp uses password-cache.el. Check variable password-cache-expiry. Its default value is 16 (passwords expire after 16 seconds). If you change this value to t, passwords do not expire during the lifetime of your Emacs session. They won't be stored in a file, just kept in memory. > My original usecase however is to be able to "cache" passwords in > eshell - perhaps, I need to modify the keyboard macro recording to > wait for a bit (till the password is prompted for) before re-playing > the password. Tramp is also compatible with eshell. See the Tramp manual for use cases. > Regards, > Kashyap=C2=A0 Best regards, Michael.