From MAILER-DAEMON Mon Sep 02 10:06:45 2013 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1VGUmD-0005At-9y for mharc-tramp-devel@gnu.org; Mon, 02 Sep 2013 10:06:45 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:57660) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VGUm5-0005Af-5M for tramp-devel@gnu.org; Mon, 02 Sep 2013 10:06:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VGUlx-0007nZ-Sa for tramp-devel@gnu.org; Mon, 02 Sep 2013 10:06:37 -0400 Received: from mout.gmx.net ([212.227.15.18]:49588) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VGUlx-0007nR-I6 for tramp-devel@gnu.org; Mon, 02 Sep 2013 10:06:29 -0400 Received: from detlef.gmx.de ([91.41.136.131]) by mail.gmx.com (mrgmx102) with ESMTPS (Nemesis) id 0LbPza-1VjWvJ2v7a-00kwax for ; Mon, 02 Sep 2013 16:06:27 +0200 From: Michael Albinus To: tramp-devel@gnu.org Subject: URL-like Tramp syntax Date: Mon, 02 Sep 2013 16:06:25 +0200 Message-ID: <87a9jvz5b2.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K0:Ac2SSojqBR15FXEpwyErtYCLK2VEQTPgE2pBquaY2/mt4XlVmDC 828sPfTZJPuoZ7VgWGxb+IVj4zcIYmmzV5Azt+SNeoJTy3ZTv34KFHa9AuvAaMAU5a+0kVi D93tdziQFmou/gIaY52WO0ung0EZvEqlF4ql/3lhOeyYTdrXC7CU98WN7ECchlUxQcKSJPr TT4CtPp0PAX2UUcMdcbFA== X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 212.227.15.18 Cc: emacs-devel@gnu.org X-BeenThere: tramp-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 02 Sep 2013 14:06:44 -0000 Hi, Tramp supports three different syntaxes for remote files, see variable `tramp-syntax'. According to the bug reports over the last 9 years, the URL-like syntax hasn't been used ever (IIRC). Therefore, I plan to remove it from the upcoming Tramp 2.2.8. At some few places, this will also simplify the implementation. Any objections? Best regards, Michael. From MAILER-DAEMON Tue Sep 03 12:30:18 2013 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1VGtUg-0004VD-EA for mharc-tramp-devel@gnu.org; Tue, 03 Sep 2013 12:30:18 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50071) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VGt16-0006Qz-5k for tramp-devel@gnu.org; Tue, 03 Sep 2013 11:59:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VGt0y-0004AV-3C for tramp-devel@gnu.org; Tue, 03 Sep 2013 11:59:44 -0400 Received: from proofpoint4.lanl.gov ([204.121.3.52]:33239) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VGt0x-0004AE-RC; Tue, 03 Sep 2013 11:59:36 -0400 Received: from mailrelay2.lanl.gov (mailrelay2.lanl.gov [128.165.4.103]) by mailgate4.lanl.gov (8.14.5/8.14.5) with ESMTP id r83FxQSY004085; Tue, 3 Sep 2013 09:59:26 -0600 Received: from localhost (localhost.localdomain [127.0.0.1]) by mailrelay2.lanl.gov (Postfix) with ESMTP id B0C491125650; Tue, 3 Sep 2013 09:59:26 -0600 (MDT) X-NIE-2-Virus-Scanner: amavisd-new at mailrelay2.lanl.gov Received: from [128.165.123.183] (xray-r06.lanl.gov [128.165.123.183]) by mailrelay2.lanl.gov (Postfix) with ESMTP id 9E5521125649; Tue, 3 Sep 2013 09:59:26 -0600 (MDT) Message-ID: <5226075D.8050500@lanl.gov> Date: Tue, 03 Sep 2013 09:59:25 -0600 From: Davis Herring Organization: XCP-1 User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.18) Gecko/20110717 Lanikai/3.1.11 MIME-Version: 1.0 To: Michael Albinus Subject: Re: URL-like Tramp syntax References: <87a9jvz5b2.fsf@gmx.de> In-Reply-To: <87a9jvz5b2.fsf@gmx.de> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.10.8794, 1.0.431, 0.0.0000 definitions=2013-09-03_06:2013-09-03, 2013-09-03, 1970-01-01 signatures=0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x X-Received-From: 204.121.3.52 X-Mailman-Approved-At: Tue, 03 Sep 2013 12:30:17 -0400 Cc: tramp-devel@gnu.org, emacs-devel@gnu.org X-BeenThere: tramp-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Sep 2013 15:59:52 -0000 > Tramp supports three different syntaxes for remote files, see variable > `tramp-syntax'. According to the bug reports over the last 9 years, the > URL-like syntax hasn't been used ever (IIRC). > > Therefore, I plan to remove it from the upcoming Tramp 2.2.8. At some > few places, this will also simplify the implementation. You've written recently about the inherent ambiguities of Tramp file name syntax. Is the URL syntax (or, for that matter, the third syntax) less problematic in this regard? It might be better to switch to it than away from it... Davis -- This product is sold by volume, not by mass. If it appears too dense or too sparse, it is because mass-energy conversion has occurred during shipping. From MAILER-DAEMON Wed Sep 04 04:05:18 2013 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1VH85V-0006nV-RE for mharc-tramp-devel@gnu.org; Wed, 04 Sep 2013 04:05:17 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:36539) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VH85O-0006mU-EZ for tramp-devel@gnu.org; Wed, 04 Sep 2013 04:05:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VH85I-0005pG-Ee for tramp-devel@gnu.org; Wed, 04 Sep 2013 04:05:10 -0400 Received: from mout.gmx.net ([212.227.15.19]:51793) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VH85I-0005mN-65 for tramp-devel@gnu.org; Wed, 04 Sep 2013 04:05:04 -0400 Received: from detlef.gmx.de ([79.230.78.30]) by mail.gmx.com (mrgmx101) with ESMTPS (Nemesis) id 0LezI3-1VmasU3bcF-00qghl for ; Wed, 04 Sep 2013 10:05:02 +0200 From: Michael Albinus To: Davis Herring Subject: Re: URL-like Tramp syntax References: <87a9jvz5b2.fsf@gmx.de> <5226075D.8050500@lanl.gov> Date: Wed, 04 Sep 2013 10:05:00 +0200 In-Reply-To: <5226075D.8050500@lanl.gov> (Davis Herring's message of "Tue, 03 Sep 2013 09:59:25 -0600") Message-ID: <87eh95f1w3.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K0:8T8TupQPaNThUZI3GNxqeUY0eUi7IkoROCSkhoWZfG1NEx8vc/G wCxTZCXVIiK17cuyDKsxAqoYCmCQ80aHGeMl9f6NG6+9rWyMSAkUqxgjGk8Mw3ULMUPKntp hBazCUEb6/R0EEdcnIdjlEdH1/yyj/J+hNlWegSYXwMo+wG9n47xnoV26D9jamDXfVrJWze OJctsqZev+yDvoLCBTPJg== X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 212.227.15.19 Cc: tramp-devel@gnu.org, emacs-devel@gnu.org X-BeenThere: tramp-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Sep 2013 08:05:16 -0000 Davis Herring writes: Hi Davis, > You've written recently about the inherent ambiguities of Tramp file > name syntax. Is the URL syntax (or, for that matter, the third syntax) > less problematic in this regard? It might be better to switch to it > than away from it... I don't believe this is preferred. Tramp's URL-like syntax competes with url-handlers.el. This is another reason I believe we should remove it from Tramp. If we want to solve the ambiguities in Tramp's primary syntax, we should change the separator between methods and user/host names. Or we should switch to the syntax used in XEmacs. But that's another story. > Davis Best regards, Michael. From MAILER-DAEMON Wed Sep 04 08:08:09 2013 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1VHBsW-000535-VN for mharc-tramp-devel@gnu.org; Wed, 04 Sep 2013 08:08:08 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:39268) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VHBsN-0004k1-RE for tramp-devel@gnu.org; Wed, 04 Sep 2013 08:08:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VHBsG-0006i9-Hd for tramp-devel@gnu.org; Wed, 04 Sep 2013 08:07:59 -0400 Received: from ironport2-out.teksavvy.com ([206.248.154.182]:1304) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VHBs1-0006CA-DY; Wed, 04 Sep 2013 08:07:37 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av4EABK/CFHO+KK6/2dsb2JhbABEvw4Xc4IeAQEEAVYjBQsLNBIUGA0kiB4GwS2RCgOkeoFegxM X-IPAS-Result: Av4EABK/CFHO+KK6/2dsb2JhbABEvw4Xc4IeAQEEAVYjBQsLNBIUGA0kiB4GwS2RCgOkeoFegxM X-IronPort-AV: E=Sophos;i="4.84,565,1355115600"; d="scan'208";a="26400212" Received: from 206-248-162-186.dsl.teksavvy.com (HELO pastel.home) ([206.248.162.186]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 04 Sep 2013 08:04:35 -0400 Received: by pastel.home (Postfix, from userid 20848) id C037762D9B; Wed, 4 Sep 2013 08:07:34 -0400 (EDT) From: Stefan Monnier To: Michael Albinus Subject: Re: URL-like Tramp syntax Message-ID: References: <87a9jvz5b2.fsf@gmx.de> <5226075D.8050500@lanl.gov> <87eh95f1w3.fsf@gmx.de> Date: Wed, 04 Sep 2013 08:07:34 -0400 In-Reply-To: <87eh95f1w3.fsf@gmx.de> (Michael Albinus's message of "Wed, 04 Sep 2013 10:05:00 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 206.248.154.182 Cc: Davis Herring , tramp-devel@gnu.org, emacs-devel@gnu.org X-BeenThere: tramp-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Sep 2013 12:08:07 -0000 >> You've written recently about the inherent ambiguities of Tramp file >> name syntax. Is the URL syntax (or, for that matter, the third syntax) >> less problematic in this regard? It might be better to switch to it >> than away from it... The ambiguities are only in the added shorthands, so they can be resolved trivially (as we did) by disallowing some shorthands. > I don't believe this is preferred. Tramp's URL-like syntax competes with > url-handlers.el. This is another reason I believe we should remove it > from Tramp. Indeed. > If we want to solve the ambiguities in Tramp's primary syntax, we should > change the separator between methods and user/host names. I think the problem is minor enough not to justify such a change. Stefan From MAILER-DAEMON Thu Sep 12 16:51:38 2013 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1VKDrW-0007lz-BT for mharc-tramp-devel@gnu.org; Thu, 12 Sep 2013 16:51:38 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55809) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VKDrU-0007lt-BR for tramp-devel@gnu.org; Thu, 12 Sep 2013 16:51:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VKDrT-000578-IB for tramp-devel@gnu.org; Thu, 12 Sep 2013 16:51:36 -0400 Received: from mail-la0-x236.google.com ([2a00:1450:4010:c03::236]:50589) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VKDrT-00056z-96 for tramp-devel@gnu.org; Thu, 12 Sep 2013 16:51:35 -0400 Received: by mail-la0-f54.google.com with SMTP id ea20so302369lab.13 for ; Thu, 12 Sep 2013 13:51:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:date:message-id:subject:from:to:content-type; bh=hi3L6HLJa5laGfqL13EHdPZsXMizSC0Jl1H7eHKq64E=; b=LAysRieTgTC4uE/yBcNIsCjVgZl57U/7lQMILxUzaw/INdcUF4vYaDAZgpEsmNTjx3 R42yrkG1OxoCuTokIRl+TvRfnaaEalkyhgRSuy0986xmpMYQih66WS5wVsCx32BwzpfI xgrjtA4f90YqqDfRXn0WZXONSQUIEwFNa6xOZyDG7WhXbHLlVQnfG2Sx4cJFB9nSDMk7 QBiBm0j+Q+TQgTXoDamfFmYF2x3MHYlrdBT4wV/aloI1jK0yJo1ok9x6IfPKywnl5QvX vg4c1utGqQ7FTZIoTfzP6b7+1zQ5kfJwdd+rYovN7VUH28ecqmxYT48ia6BXXIau3iXn /2ew== MIME-Version: 1.0 X-Received: by 10.152.228.130 with SMTP id si2mr3189696lac.32.1379019093104; Thu, 12 Sep 2013 13:51:33 -0700 (PDT) Sender: nyuko.choi@gmail.com Received: by 10.112.235.199 with HTTP; Thu, 12 Sep 2013 13:51:33 -0700 (PDT) Date: Thu, 12 Sep 2013 16:51:33 -0400 X-Google-Sender-Auth: rQwYR3k04ELbqKWr_yQI4QkGKAk Message-ID: Subject: [BUG] Full file path (/ssh:remote...) when executing a saved Python script From: Kit-Yan Choi To: tramp-devel@gnu.org Content-Type: multipart/alternative; boundary=001a1133f3d02ede7d04e635e75f X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:4010:c03::236 X-BeenThere: tramp-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Sep 2013 20:51:37 -0000 --001a1133f3d02ede7d04e635e75f Content-Type: text/plain; charset=ISO-8859-1 When I wanted to execute a *SAVED* python script after logged into a remote machine through Tramp, I got the following message: --------------------------------------------------------------------------- IOError Traceback (most recent call last) /home/SECRET_PATH/ in () ----> 1 execfile(r'/ssh:remote:/PATH_OF_FILE') # PYTHON-MODE IOError: [Errno 2] No such file or directory: '/ssh:remote:PATH_OF_FILE' Clearly it would have worked if the /ssh:remote prefix was eliminated. I realized the work-around would be to modify the file a little bit (e.g. adding a space) so that the file is an unsaved temporary file. The file will then be written to a temporary file on the remote host, and the execution works. Similarly, executing a region works too. --001a1133f3d02ede7d04e635e75f Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
When I wanted to execute a *SAVED* python script after log= ged into a remote machine through Tramp, I got the following message:
<= br>
--------------------------------------------------------= -------------------
IOError =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 Traceback (most recent call last)
/home/SECRET_PATH/<i= python-input-4-f052da0ab8eb> in <module>()
----> 1 ex= ecfile(r'/ssh:remote:/PATH_OF_FILE') # PYTHON-MODE

IOError: [Errno 2] No such file or directory: '/ssh= :remote:PATH_OF_FILE'


Cle= arly it would have worked if the /ssh:remote prefix was eliminated.

I realized the work-around would be to modify the file = a little bit (e.g. adding a space) so that the file is an unsaved temporary= file.
The file will then be written to a temporary file on the r= emote host, and the execution works.
Similarly, executing a region works too.


=

--001a1133f3d02ede7d04e635e75f-- From MAILER-DAEMON Fri Sep 13 02:45:23 2013 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1VKN87-0007lq-4T for mharc-tramp-devel@gnu.org; Fri, 13 Sep 2013 02:45:23 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:45988) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VKN7z-0007gg-O4 for tramp-devel@gnu.org; Fri, 13 Sep 2013 02:45:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VKN7r-0003Fa-Cl for tramp-devel@gnu.org; Fri, 13 Sep 2013 02:45:15 -0400 Received: from mout.gmx.net ([212.227.17.21]:56601) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VKN7r-0003CG-4C for tramp-devel@gnu.org; Fri, 13 Sep 2013 02:45:07 -0400 Received: from detlef.gmx.de ([91.41.130.157]) by mail.gmx.com (mrgmx102) with ESMTPS (Nemesis) id 0LkBPy-1Vv5qn36V8-00cBve for ; Fri, 13 Sep 2013 08:45:04 +0200 From: Michael Albinus To: Andrey Tykhonov Subject: Re: Connect to the ssh and execute any command References: <20130912215641.GA6461@demi> Date: Fri, 13 Sep 2013 08:45:02 +0200 In-Reply-To: <20130912215641.GA6461@demi> (Andrey Tykhonov's message of "Fri, 13 Sep 2013 00:56:41 +0300") Message-ID: <87y571p6dt.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K0:DmcRKifvw3Kw+cBBTBqZe5E/FVC99ciMXZGajqCj/s7jrEDo/O5 /jAMt2DnKUMDdZVqW0UQwba6Kl+Re/CY8lfrimoyKsq2TIWPdXyuAB0fNhj/VbZzDu9XCdb 5yloJoobdebQIIApPgp9MBLng651fdLy1CZ9zWofAt1kvczXiwSJANtN7QFKsd5R9vmWvW/ wFfHqYA5lieQYo0q2lg8g== X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [generic] X-Received-From: 212.227.17.21 Cc: tramp-devel@gnu.org, emacs-orgmode@gnu.org X-BeenThere: tramp-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 Sep 2013 06:45:21 -0000 Andrey Tykhonov writes: [Cc to tramp-devel@gnu.org, because I want to help with Tramp config] > Hi all! Hi Andrey, > During last several days I was trying to implement quite simple script > which: > > 1. Creates new buffer with the shell (M-x shell) > 2. Executes there "ssh username@domain.com". As result -- the password > prompt appears in the minibuffer. I manually input password. > 3. Then script executes any command in the recently created buffer > (shell), for example: "ls -la". So I expect to see directory listing on > the domain.com. > > but, for sorry, I cannot to do so that "ls -la" will be executed! > > I googled, I have tried many different approaches but without any luck :-( > > Here I should mention quite important thing: I cannot use TRAMP because > it does not work with the server to which the script connects and then > on which executes "ls -la". (I suppose that TRAMP uses FUSE, but for > sorry FUSE does not work with mine server). So TRAMP is not available > for me. Tramp does not use FUSE for ssh connections. Please show an example connection to the remote host, and how it fails. Prior to the test, you should apply (setq tramp-verbose 6) This will create a Tramp debug buffer, which shall show the problem. > Regards, > Andrey Best regards, Michael. From MAILER-DAEMON Fri Sep 13 03:02:52 2013 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1VKNP2-0002MG-6Y for mharc-tramp-devel@gnu.org; Fri, 13 Sep 2013 03:02:52 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:48437) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VKNOu-0002Kq-AH for tramp-devel@gnu.org; Fri, 13 Sep 2013 03:02:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VKNOo-0007a7-4l for tramp-devel@gnu.org; Fri, 13 Sep 2013 03:02:44 -0400 Received: from mout.gmx.net ([212.227.17.21]:60490) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VKNOn-0007a3-Rt for tramp-devel@gnu.org; Fri, 13 Sep 2013 03:02:38 -0400 Received: from detlef.gmx.de ([91.41.130.157]) by mail.gmx.com (mrgmx002) with ESMTPS (Nemesis) id 0MO7im-1VH4121W6e-005aTc for ; Fri, 13 Sep 2013 09:02:37 +0200 From: Michael Albinus To: Kit-Yan Choi Subject: Re: [BUG] Full file path (/ssh:remote...) when executing a saved Python script References: Date: Fri, 13 Sep 2013 09:02:34 +0200 In-Reply-To: (Kit-Yan Choi's message of "Thu, 12 Sep 2013 16:51:33 -0400") Message-ID: <87six9p5kl.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K0:gpzu26jj4bl89iGu3SWyI2BO/XeeMOHCRou6e7614lWZx5qAtms 7suLsp+1fiINzDrYJGhtdbd6xkBmE1EC7s5uLnv/iQfy8nRs2Mja0VAM0PMhsFUOF/Ul/zB eYml0ZcxtYZOahNRrF7rWk4ZA0nbZnnZqPkRFHf5OS/QhusyA0Vcs1gIjzcGTzCyBVmMIwa pKE2nkRoYtH/UZb6ge92g== X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [generic] X-Received-From: 212.227.17.21 Cc: tramp-devel@gnu.org X-BeenThere: tramp-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 Sep 2013 07:02:50 -0000 Kit-Yan Choi writes: > When I wanted to execute a *SAVED* python script after logged into a > remote machine through Tramp, I got the following message: > > ----------------------------------------------------------------------- > ---- > IOError Traceback (most recent call last) > /home/SECRET_PATH/ in () > ----> 1 execfile(r'/ssh:remote:/PATH_OF_FILE') # PYTHON-MODE I assume your script is called like "python /ssh:remote:/PATH_OF_FILE" (I don't use python myself, so I don't know the name of the python binary). The problem for Tramp is, that your script is just an *argument* of a remote process. Tramp does not touch arguments of any process being called, because it cannot know whether something, which *looks* like a remote file name, shall be replaced by the local file name part, or not. Therefore, it is recommended to use relative file names as arguments for processes in a remote environment. Alternatively, the *caller* of the process shall massage remote file names to be local ones. How do you call your saved python script? Is it just a function of a python lisp package, or do you arrange it yourself? Best regards, Michael. From MAILER-DAEMON Sat Sep 14 03:50:35 2013 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1VKkcl-0007KL-6o for mharc-tramp-devel@gnu.org; Sat, 14 Sep 2013 03:50:35 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:59600) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VKkce-0007K6-Ob for tramp-devel@gnu.org; Sat, 14 Sep 2013 03:50:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VKkcZ-0003u5-Sl for tramp-devel@gnu.org; Sat, 14 Sep 2013 03:50:28 -0400 Received: from mout.gmx.net ([212.227.15.19]:55355) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VKkcZ-0003u0-I3 for tramp-devel@gnu.org; Sat, 14 Sep 2013 03:50:23 -0400 Received: from detlef.gmx.de ([91.41.135.212]) by mail.gmx.com (mrgmx001) with ESMTPS (Nemesis) id 0LaGJa-1Vmygc3GAQ-00m60E for ; Sat, 14 Sep 2013 09:50:21 +0200 From: Michael Albinus To: Kit-Yan Choi Subject: Re: [BUG] Full file path (/ssh:remote...) when executing a saved Python script References: <87six9p5kl.fsf@gmx.de> Date: Sat, 14 Sep 2013 09:50:18 +0200 In-Reply-To: (Kit-Yan Choi's message of "Fri, 13 Sep 2013 09:06:04 -0400") Message-ID: <87d2obq1tx.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K0:fLcyelhwvVgkomNzph6ERie3DLMDSRyKp3qj3CHXSh4iLEbqaYq lFNgnGgI4hoaCVE4/cC7ZKcO7sg/kQVvqkiEglH1N874G59jaa4KuZBsuOg7IDNolsb8zd9 TLkIVjRkOq2teitHhSLXm1z/7furuXR5Am/nr1+3vjzdT4g/e0MF8f5BisnYpgbYPnPtIUN 0srYCPJ1vN0oANeMzurVA== X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 212.227.15.19 Cc: tramp-devel@gnu.org, python-mode@python.org X-BeenThere: tramp-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 14 Sep 2013 07:50:33 -0000 [CC tramp-devel@gnu.org, python-mode@python.org] Kit-Yan Choi writes: > Hi Michael, Hi Kit, > Thank you for your response! I was editing the script saved on the > remote machine and press C-c C-c to execute the buffer after saving > (C-x C-s). > > I am using Emacs 23.3.1 with Tramp and python-mode 6.1.1 (the one > found on launchpad). For the readers on python-mode@python.org: Kit has saved a python script on a remote host, and tries to execute it afterwards from the respective buffer. I have installed python-mode 6.1.1 and could reproduce the problem. First I've tried the more recent python-mode 6.1.2, but I did run into other problems when pressing C-c C-c even for a local python script. Maybe somebody from the python-mode guys could check. With python-mode 6.1.1, the following patch solves the problem for me: --8<---------------cut here---------------start------------->8--- *** /home/albinus/Downloads/python-mode.el-6.1.1/python-mode.el.~1~ 2013-02-15 20:51:37.000000000 +0100 --- /home/albinus/Downloads/python-mode.el-6.1.1/python-mode.el 2013-09-14 09:37:28.549155641 +0200 *************** *** 9373,9379 **** (strg (buffer-substring-no-properties start end)) (sepchar (or sepchar (char-to-string py-separator-char))) (py-buffer-name (py-buffer-name-prepare pyshellname sepchar)) ! (localname file) (switch (or switch py-switch-buffers-on-execute-p)) (split (or split py-split-windows-on-execute-p)) (proc (if dedicated --- 9373,9379 ---- (strg (buffer-substring-no-properties start end)) (sepchar (or sepchar (char-to-string py-separator-char))) (py-buffer-name (py-buffer-name-prepare pyshellname sepchar)) ! (localname (or (file-remote-p file 'localname) file)) (switch (or switch py-switch-buffers-on-execute-p)) (split (or split py-split-windows-on-execute-p)) (proc (if dedicated --8<---------------cut here---------------end--------------->8--- But I don't know python-mode.el, maybe there's a better (more central) place to apply such a patch. > Kit Best regards, Michael. From MAILER-DAEMON Tue Sep 17 01:01:29 2013 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1VLnPl-0000ag-Pp for mharc-tramp-devel@gnu.org; Tue, 17 Sep 2013 01:01:29 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:47355) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VLcsB-0006Eh-Nn for tramp-devel@gnu.org; Mon, 16 Sep 2013 13:46:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VLcs6-0004tM-BG for tramp-devel@gnu.org; Mon, 16 Sep 2013 13:46:07 -0400 Received: from mail-lb0-x22f.google.com ([2a00:1450:4010:c04::22f]:53269) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VLcrv-0004rT-CF; Mon, 16 Sep 2013 13:45:51 -0400 Received: by mail-lb0-f175.google.com with SMTP id y6so4418820lbh.6 for ; Mon, 16 Sep 2013 10:45:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=RbwoLoi5N4Kob5NTJBQgoN8lBsL5Zo3Cfnbd+wqGULI=; b=fBcUA/QrUyiFnjS1uIQnL94oePe3f5EvXwwuWkTUbdnGhgFz96WZwpQyhbh4QDRTPi bDWfT+tVt6rr62kjU0zqhAmO0YD63tHG0Rp6yb+OZFJALTS05m4Mn09PEQBSkp3CH2Rg EiiupkZi4WpDIzkH7OZ/VHhG9nH2fDTA8xDmSzuGwGJZ3IA3lnEJyfoa3JNbuZf748mB OTbv8T7SopPMksBT+8oF8O2NfGxp8E18k/FQt6YvRDgEGBCqHJ62FnhsnFyC9QynQ5on VBy9Fj9C7wrr91Ibw/eMMb39iqxDf5lmzvdzTyLhD494/czSPBygtSv9zm6Fg7HpEPDR RAyg== X-Received: by 10.112.51.101 with SMTP id j5mr25923497lbo.17.1379353549558; Mon, 16 Sep 2013 10:45:49 -0700 (PDT) Received: from demi (184-137-113-92.pool.ukrtel.net. [92.113.137.184]) by mx.google.com with ESMTPSA id ua4sm13575481lbb.17.1969.12.31.16.00.00 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Mon, 16 Sep 2013 10:45:49 -0700 (PDT) Date: Mon, 16 Sep 2013 20:44:53 +0300 From: Andrey Tykhonov To: Michael Albinus Subject: Re: Connect to the ssh and execute any command Message-ID: <20130916174453.GA8446@demi> References: <20130912215641.GA6461@demi> <87y571p6dt.fsf@gmx.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87y571p6dt.fsf@gmx.de> User-Agent: Mutt/1.5.21 (2010-09-15) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:4010:c04::22f X-Mailman-Approved-At: Tue, 17 Sep 2013 01:01:28 -0400 Cc: tramp-devel@gnu.org, emacs-orgmode@gnu.org X-BeenThere: tramp-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 Sep 2013 17:46:13 -0000 On Fri, Sep 13, 2013 at 08:45:02AM +0200, Michael Albinus wrote: > Andrey Tykhonov writes: > > [Cc to tramp-devel@gnu.org, because I want to help with Tramp config] > > > Hi all! > > Hi Andrey, > > > During last several days I was trying to implement quite simple script > > which: > > > > 1. Creates new buffer with the shell (M-x shell) > > 2. Executes there "ssh username@domain.com". As result -- the password > > prompt appears in the minibuffer. I manually input password. > > 3. Then script executes any command in the recently created buffer > > (shell), for example: "ls -la". So I expect to see directory listing on > > the domain.com. > > > > but, for sorry, I cannot to do so that "ls -la" will be executed! > > > > I googled, I have tried many different approaches but without any luck :-( > > > > Here I should mention quite important thing: I cannot use TRAMP because > > it does not work with the server to which the script connects and then > > on which executes "ls -la". (I suppose that TRAMP uses FUSE, but for > > sorry FUSE does not work with mine server). So TRAMP is not available > > for me. > > Tramp does not use FUSE for ssh connections. Please show an example > connection to the remote host, and how it fails. First of all I added (setq tramp-verbose 6) to the ~/.emacs Then M-x eshell, and then cd /ssh:username@hostname:/some/existing/dir I get password prompt, I put correct password, then get such prompt: /ssh:username@hostname:/some/existing/dir $ Here I try to "ls -la" and get the following error: Couldn't find a POSIX `id' command Best regards, Andrey. > > Prior to the test, you should apply > > (setq tramp-verbose 6) > > This will create a Tramp debug buffer, which shall show the problem. > > > Regards, > > Andrey > > Best regards, Michael. From MAILER-DAEMON Tue Sep 17 02:55:19 2013 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1VLpBv-0006Df-Sf for mharc-tramp-devel@gnu.org; Tue, 17 Sep 2013 02:55:19 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:34834) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VLpBm-000648-Uq for tramp-devel@gnu.org; Tue, 17 Sep 2013 02:55:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VLpBY-0002z6-Ob for tramp-devel@gnu.org; Tue, 17 Sep 2013 02:55:10 -0400 Received: from mout.gmx.net ([212.227.15.18]:57903) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VLpBY-0002yb-Ff for tramp-devel@gnu.org; Tue, 17 Sep 2013 02:54:56 -0400 Received: from detlef.gmx.de ([91.41.129.128]) by mail.gmx.com (mrgmx103) with ESMTPS (Nemesis) id 0MOfQw-1VFkuB304s-0065zy for ; Tue, 17 Sep 2013 08:54:54 +0200 From: Michael Albinus To: Andrey Tykhonov Subject: Re: Connect to the ssh and execute any command References: <20130912215641.GA6461@demi> <87y571p6dt.fsf@gmx.de> <20130916174453.GA8446@demi> Date: Tue, 17 Sep 2013 08:54:51 +0200 In-Reply-To: <20130916174453.GA8446@demi> (Andrey Tykhonov's message of "Mon, 16 Sep 2013 20:44:53 +0300") Message-ID: <877gegrl8k.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K0:Kt6EV0P4fZtfSko3b0VwiPHOi6L/X8peoTzy8I8vIW1Lwhz17xW vpuuYY4aMxczPNawUgBbCZee7AsWGc8u6qE6PTkVk/co+T3HD7b6gGMFgWYVKIaKsUa9SVY 8v9qMOyDUK5+Q/egm05PFzIwa9fVkyeVMt600n5JR192kTUiPUZVScVPKrp0FABWCU72nFG q7D0BFVaYiRarbWHrI1wg== X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 212.227.15.18 Cc: tramp-devel@gnu.org, emacs-orgmode@gnu.org X-BeenThere: tramp-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 17 Sep 2013 06:55:18 -0000 Andrey Tykhonov writes: Hi Andrey, >> Tramp does not use FUSE for ssh connections. Please show an example >> connection to the remote host, and how it fails. > Here I try to "ls -la" and get the following error: > > Couldn't find a POSIX `id' command Your remote host does not find a proper "id" command. What happens, if you call the following commands in a shell on that remote host: # id -u # id --version # which id # whereis id # uname -a > Best regards, > Andrey. Best regards, Michael. From MAILER-DAEMON Tue Sep 17 16:50:45 2013 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1VM2EP-0002uM-34 for mharc-tramp-devel@gnu.org; Tue, 17 Sep 2013 16:50:45 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:47048) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VM0bq-0004II-1I for tramp-devel@gnu.org; Tue, 17 Sep 2013 15:06:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VM0bh-00058N-KO for tramp-devel@gnu.org; Tue, 17 Sep 2013 15:06:49 -0400 Received: from mail-la0-x236.google.com ([2a00:1450:4010:c03::236]:45229) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VM0bP-00054f-Cp; Tue, 17 Sep 2013 15:06:23 -0400 Received: by mail-la0-f54.google.com with SMTP id ea20so4740481lab.41 for ; Tue, 17 Sep 2013 12:06:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=Pcusn0/ChPr2j8tTF+5uqsiF9TPkRMt7/+hcOvVw3wA=; b=VlEWZ8srD53Xyb8o+XXtae9QKoqUv4kTLKiqEh2IYV7685qM3vdtDck81tyWAb0nFa dV+dZNjMHUAT8y5mdrPYb2+4o1wtuv11RVAZoGUIGa4fg8aJ3mUZXwGddi3bar18vV7U SW0MsaeYg46OF9vI42QQa90+XvXU9IU+lH52DExdSC4mZIcb8P4auAteN9gjZEuf4fti irYCpe8iEDFD7hbz18wujcb6+1J08rSbmELv2ra7jljFeaW+iwW9zdJ1SxsDcXIT5ck0 krbWiCyjXmjMySKOMZ88FjWZQUXiJC5nPPUgBHX5GyZIMeSm1FhGuYPFzA8RH+DXB12Q 7wgg== X-Received: by 10.152.120.73 with SMTP id la9mr30878466lab.3.1379444781375; Tue, 17 Sep 2013 12:06:21 -0700 (PDT) Received: from demi (220-67-113-92.pool.ukrtel.net. [92.113.67.220]) by mx.google.com with ESMTPSA id ao4sm15174579lac.1.1969.12.31.16.00.00 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Tue, 17 Sep 2013 12:06:20 -0700 (PDT) Date: Tue, 17 Sep 2013 22:05:23 +0300 From: Andrey Tykhonov To: Michael Albinus Subject: Re: Connect to the ssh and execute any command Message-ID: <20130917190523.GA7455@demi> References: <20130912215641.GA6461@demi> <87y571p6dt.fsf@gmx.de> <20130916174453.GA8446@demi> <877gegrl8k.fsf@gmx.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <877gegrl8k.fsf@gmx.de> User-Agent: Mutt/1.5.21 (2010-09-15) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:4010:c03::236 X-Mailman-Approved-At: Tue, 17 Sep 2013 16:50:44 -0400 Cc: tramp-devel@gnu.org, emacs-orgmode@gnu.org X-BeenThere: tramp-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 17 Sep 2013 19:06:58 -0000 On Tue, Sep 17, 2013 at 08:54:51AM +0200, Michael Albinus wrote: > Andrey Tykhonov writes: > > Hi Andrey, Hi Michael! > > >> Tramp does not use FUSE for ssh connections. Please show an example > >> connection to the remote host, and how it fails. > > > Here I try to "ls -la" and get the following error: > > > > Couldn't find a POSIX `id' command > > Your remote host does not find a proper "id" command. What happens, if > you call the following commands in a shell on that remote host: > > # id -u id: Command not found. > # id --version id: Command not found. > # which id id: Command not found. > # whereis id whereis: Command not found. I also didn't find 'id' by means of find / -name id As I understand TRAMP is not able to work without 'id'. Therefore TRAMP is not suitable for me... > # uname -a FreeBSD {hostname} 8.2-RELEASE FreeBSD 8.2-RELEASE #0: Fri Sep 13 21:22:42 PDT 2013 auto-build@{hostname}:{some/path/} amd64 Here I replaced real hostname by {hostname}. Best regards, Andrey > > > Best regards, > > Andrey. > > Best regards, Michael. From MAILER-DAEMON Wed Sep 18 02:43:04 2013 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1VMBTc-0005h9-Mt for mharc-tramp-devel@gnu.org; Wed, 18 Sep 2013 02:43:04 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:37130) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VMBTU-0005Wl-Jm for tramp-devel@gnu.org; Wed, 18 Sep 2013 02:43:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VMBTK-0001N2-PD for tramp-devel@gnu.org; Wed, 18 Sep 2013 02:42:56 -0400 Received: from mout.gmx.net ([212.227.15.15]:55854) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VMBTK-0001Ml-GY for tramp-devel@gnu.org; Wed, 18 Sep 2013 02:42:46 -0400 Received: from detlef.gmx.de ([91.41.129.9]) by mail.gmx.com (mrgmx003) with ESMTPS (Nemesis) id 0MI4yc-1VLcyZ05CI-003vZj for ; Wed, 18 Sep 2013 08:42:45 +0200 From: Michael Albinus To: Andrey Tykhonov Subject: Re: Connect to the ssh and execute any command References: <20130912215641.GA6461@demi> <87y571p6dt.fsf@gmx.de> <20130916174453.GA8446@demi> <877gegrl8k.fsf@gmx.de> <20130917190523.GA7455@demi> Date: Wed, 18 Sep 2013 08:42:44 +0200 In-Reply-To: <20130917190523.GA7455@demi> (Andrey Tykhonov's message of "Tue, 17 Sep 2013 22:05:23 +0300") Message-ID: <87mwnaockb.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K0:y611prrhIUGKxWuxkZwJjNZLyWvVhoX7q3snFBIRFmTwJc+xKKW jfled5PVkwZbJq2OOG/6oERcvWfdsKVTrQ0h4LJ/YNBZigONzmzvgRTw7ZKLIyt5SWruYTX gwmvRzaD13MbQ4gLnNeRc198iw72S1nxpCo45G/FH5DrVxfwM5lZxvd4ilbhspcziBld/dr jb8lSoCMjjW7lDWREjZJA== X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 212.227.15.15 Cc: tramp-devel@gnu.org, emacs-orgmode@gnu.org X-BeenThere: tramp-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 Sep 2013 06:43:04 -0000 Andrey Tykhonov writes: > Hi Michael! Hi Andrey, >> Your remote host does not find a proper "id" command. What happens, if >> you call the following commands in a shell on that remote host: >> >> # id -u > > id: Command not found. > >> # whereis id > > whereis: Command not found. > > I also didn't find 'id' by means of > > find / -name id > > As I understand TRAMP is not able to work without 'id'. Therefore TRAMP is > not suitable for me... > >> # uname -a > > FreeBSD {hostname} 8.2-RELEASE FreeBSD 8.2-RELEASE #0: Fri Sep 13 > 21:22:42 PDT 2013 auto-build@{hostname}:{some/path/} amd64 Strange. `id' (and also `whereis') belong to FreeBSD proper. See for example You might check with your remote host why it is not installed. > Best regards, > Andrey Best regards, Michael. From MAILER-DAEMON Wed Sep 18 06:10:16 2013 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1VMEi8-0000xL-BE for mharc-tramp-devel@gnu.org; Wed, 18 Sep 2013 06:10:16 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:47696) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VMEhz-0000vC-JY for tramp-devel@gnu.org; Wed, 18 Sep 2013 06:10:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VMEhs-0005UD-92 for tramp-devel@gnu.org; Wed, 18 Sep 2013 06:10:07 -0400 Received: from mout.gmx.net ([212.227.17.22]:60450) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VMEhr-0005Tp-W3 for tramp-devel@gnu.org; Wed, 18 Sep 2013 06:10:00 -0400 Received: from detlef.gmx.de ([91.41.129.9]) by mail.gmx.com (mrgmx003) with ESMTPS (Nemesis) id 0Lj1Cw-1Vv0xf2BMU-00dGIb for ; Wed, 18 Sep 2013 12:09:57 +0200 From: Michael Albinus To: Andrey Tykhonov Subject: Re: Connect to the ssh and execute any command References: <20130912215641.GA6461@demi> <87y571p6dt.fsf@gmx.de> <20130916174453.GA8446@demi> <877gegrl8k.fsf@gmx.de> <20130917190523.GA7455@demi> <87mwnaockb.fsf@gmx.de> <20130918093341.GA13824@demi> Date: Wed, 18 Sep 2013 12:09:55 +0200 In-Reply-To: <20130918093341.GA13824@demi> (Andrey Tykhonov's message of "Wed, 18 Sep 2013 12:33:41 +0300") Message-ID: <87li2ucufg.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K0:CNe+gwNCd3EJscMI+14R7FXdHgQv3jdwY4ZCUcpH0gwXoxcDsQR l2L6QkZosPmUGy60i4Z+saY4Fl4/R1ZmnuHStODHZjD5e0YmPksOJw0jS9Q+hvx6dNGAQ1H Dw6ti+c7F3HhaUuf5ZITwgx2CUtZosjXdQxvBdWXrP+BCKz2g6bpxpSoXJXcpBxFs+1pHaP mtNG52W7DUF5bbQt4BVSA== X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 212.227.17.22 Cc: tramp-devel@gnu.org X-BeenThere: tramp-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 Sep 2013 10:10:15 -0000 Andrey Tykhonov writes: > Hi Michael! Hi Andrey, > This is not surprise for me as such hosts are very custom. They are not > sterling FreeBSD. I'm not sure if I can install something there. But > even I can then I'll be needed to install these things again, again and > again, because such hosts has very short life, they reinstalls very > often, from the scratch, from template which I'm not able to change... I see. However, Tramp is not fixed to use `id' and nothing else. It needs `id' to recognize the user's uid and gid. If you could tell me, what the counterparts of the respective commands are on the remote host, I could teach Tramp to use them. Tramp needs to call the following commands, which would require a replacement: # id -u # id -un # id -g # id -gn > Best regards, > Andrey Best regards, Michael. From MAILER-DAEMON Wed Sep 18 08:47:14 2013 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1VMHA1-0006u8-VG for mharc-tramp-devel@gnu.org; Wed, 18 Sep 2013 08:47:13 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:57353) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VMH9x-0006tJ-Tf for tramp-devel@gnu.org; Wed, 18 Sep 2013 08:47:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VMH9w-0007El-EQ for tramp-devel@gnu.org; Wed, 18 Sep 2013 08:47:09 -0400 Received: from mail-wi0-x235.google.com ([2a00:1450:400c:c05::235]:38157) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VMH9w-0007CF-6o for tramp-devel@gnu.org; Wed, 18 Sep 2013 08:47:08 -0400 Received: by mail-wi0-f181.google.com with SMTP id ex4so6401846wid.14 for ; Wed, 18 Sep 2013 05:47:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=Na2JFRgZ3sY6yL1e+EIzpsx3SShbLpcZzUBzeBZrQ4s=; b=Hvas2HfaTkU1ztf8/AHfbq8iXxPs11pPiDDUxlZg7QklH+gzYaR2HjHqMg4C1aXv3a u1T1VL9pfTMUtSf+yE0DhgHLKraU9SvtGYZzHa84X87wRXtqiNYeGF/GF2BkRfQ1GMzC qK6hXD19+qMeWoomlSW/cD7hoHPXR9RQPS+VcPzgzoOzXTmerT8YzmMUX66RD4JFGw0R 2wkpyhwNy54QNkRvDuxQzzDIjikcbiuAUt8qeEK8nrJqofxCuDhuhsCG9qJGIji/pk40 /4Kq6dN+ZviUfwacDWDml7zhGgVMt4M7Ww0df91lSdqTa1moDeNF+44CU0Ylg0GiIJtr a+qw== X-Received: by 10.180.89.206 with SMTP id bq14mr6951898wib.56.1379508426153; Wed, 18 Sep 2013 05:47:06 -0700 (PDT) MIME-Version: 1.0 Received: by 10.194.83.72 with HTTP; Wed, 18 Sep 2013 05:46:46 -0700 (PDT) In-Reply-To: <87li2ucufg.fsf@gmx.de> References: <20130912215641.GA6461@demi> <87y571p6dt.fsf@gmx.de> <20130916174453.GA8446@demi> <877gegrl8k.fsf@gmx.de> <20130917190523.GA7455@demi> <87mwnaockb.fsf@gmx.de> <20130918093341.GA13824@demi> <87li2ucufg.fsf@gmx.de> From: yary Date: Wed, 18 Sep 2013 08:46:46 -0400 Message-ID: Subject: Re: Connect to the ssh and execute any command To: Michael Albinus Content-Type: text/plain; charset=ISO-8859-1 X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:400c:c05::235 Cc: "tramp-devel@gnu.org" X-BeenThere: tramp-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 Sep 2013 12:47:11 -0000 I'm not sure if perl is on Andrey's remote host, but I recall that other parts of Tramp uses it. So here are perl-based alternates to "id": # id -u: perl -le 'print$>' # id -un perl -le 'print scalar getpwuid($>)' # id -g perl -le 'print($)=~/(\d+)/)' # id -gn perl -le 'print scalar getgrgid($))' -y On Wed, Sep 18, 2013 at 6:09 AM, Michael Albinus wrote: > Andrey Tykhonov writes: > >> Hi Michael! > > Hi Andrey, > >> This is not surprise for me as such hosts are very custom. They are not >> sterling FreeBSD. I'm not sure if I can install something there. But >> even I can then I'll be needed to install these things again, again and >> again, because such hosts has very short life, they reinstalls very >> often, from the scratch, from template which I'm not able to change... > > I see. However, Tramp is not fixed to use `id' and nothing else. It > needs `id' to recognize the user's uid and gid. If you could tell me, > what the counterparts of the respective commands are on the remote host, > I could teach Tramp to use them. Tramp needs to call the following > commands, which would require a replacement: > > # id -u > # id -un > # id -g > # id -gn > >> Best regards, >> Andrey > > Best regards, Michael. > > _______________________________________________ > Tramp-devel mailing list > Tramp-devel@gnu.org > https://lists.gnu.org/mailman/listinfo/tramp-devel From MAILER-DAEMON Wed Sep 18 09:04:30 2013 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1VMHQk-0007Td-Bh for mharc-tramp-devel@gnu.org; Wed, 18 Sep 2013 09:04:30 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:33590) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VMHQb-0007DU-Am for tramp-devel@gnu.org; Wed, 18 Sep 2013 09:04:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VMHQT-0004X2-Rq for tramp-devel@gnu.org; Wed, 18 Sep 2013 09:04:21 -0400 Received: from mout.gmx.net ([212.227.15.19]:57208) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VMHQT-0004Wf-IQ for tramp-devel@gnu.org; Wed, 18 Sep 2013 09:04:13 -0400 Received: from detlef.gmx.de ([91.41.129.9]) by mail.gmx.com (mrgmx002) with ESMTPS (Nemesis) id 0LkxLZ-1VwA4k422X-00akYa for ; Wed, 18 Sep 2013 15:04:12 +0200 From: Michael Albinus To: yary Subject: Re: Connect to the ssh and execute any command References: <20130912215641.GA6461@demi> <87y571p6dt.fsf@gmx.de> <20130916174453.GA8446@demi> <877gegrl8k.fsf@gmx.de> <20130917190523.GA7455@demi> <87mwnaockb.fsf@gmx.de> <20130918093341.GA13824@demi> <87li2ucufg.fsf@gmx.de> Date: Wed, 18 Sep 2013 15:04:10 +0200 In-Reply-To: (yary's message of "Wed, 18 Sep 2013 08:46:46 -0400") Message-ID: <8761tycmd1.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K0:bvS3R3YTihW2TyK9gcMMrmocHjvJemLDvbcOu+gCBThwYYxOg/r hHJAd3xujVpVBLN6GuDHqjw+7YSH0Myc07n78ZWuHqd23YQQ/q5KrM4JoFjT3Egj6S6cil9 bmBadAtzAY3KKwuDgzF0xFUkUS/eqBqjikOkd2yi4JPokufv2bt3CeXTLAC2AZV5bM1eele alVY9y3GzsiuhLv47jEww== X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 212.227.15.19 Cc: Andrey Tykhonov , "tramp-devel@gnu.org" X-BeenThere: tramp-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 Sep 2013 13:04:29 -0000 yary writes: > I'm not sure if perl is on Andrey's remote host, but I recall that > other parts of Tramp uses it. So here are perl-based alternates to > "id": > > # id -u > perl -le 'print$>' > > # id -un > perl -le 'print scalar getpwuid($>)' > > # id -g > perl -le 'print($)=~/(\d+)/)' > > # id -gn > perl -le 'print scalar getgrgid($))' Looks good, thanks! Andrey, do you have Perl there? > -y Best regards, Michael. From MAILER-DAEMON Wed Sep 18 09:33:32 2013 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1VMHsq-0006IC-0z for mharc-tramp-devel@gnu.org; Wed, 18 Sep 2013 09:33:32 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:42514) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VMHsf-0006Cr-U7 for tramp-devel@gnu.org; Wed, 18 Sep 2013 09:33:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VMHsX-0006xZ-Gq for tramp-devel@gnu.org; Wed, 18 Sep 2013 09:33:21 -0400 Received: from mail-lb0-x22a.google.com ([2a00:1450:4010:c04::22a]:34690) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VMHsX-0006xK-9J for tramp-devel@gnu.org; Wed, 18 Sep 2013 09:33:13 -0400 Received: by mail-lb0-f170.google.com with SMTP id w7so6631435lbi.15 for ; Wed, 18 Sep 2013 06:33:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=9b89e1eX4eTHCM5Ii7fZylrC2yQN+ihOZLV7eo/qU3s=; b=OzNyHj7JR2WFhFaeBTMxpJjYd2OkR2ymbrMibFkAkALDT5z5qmyiYDHJpwNceGydld w8ih6smO+gPyAnpx7y1ZEl20RKu4FU0jZY3cpv3g/+8qYsf6NeTuGC7GooJeBPnz3Ryv ly9DrpEN1oMh2uQVd0Oc/uLluZa+hUkepEwTE/ErFO8OdE80iuZ09Pi8K/g50Gpv1JoK EFPx/nl8zu5hcFIY6AE0ZrvXxKVITAiqQKzegNnPU5aq0wQxToNuxmdRU0UaqgsptRqQ SufPXm/t5nWOkrvRraLvjLKEZnEDK4RhWLArxPEHTkaxZxeM7QQ7gnti3Z71HHO4WmAG KerQ== X-Received: by 10.112.64.7 with SMTP id k7mr1433555lbs.43.1379511192072; Wed, 18 Sep 2013 06:33:12 -0700 (PDT) Received: from demi (178-188-113-92.pool.ukrtel.net. [92.113.188.178]) by mx.google.com with ESMTPSA id zc3sm1569686lbb.2.1969.12.31.16.00.00 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Wed, 18 Sep 2013 06:33:11 -0700 (PDT) Date: Wed, 18 Sep 2013 16:32:02 +0300 From: Andrey Tykhonov To: Michael Albinus Subject: Re: Connect to the ssh and execute any command Message-ID: <20130918133202.GA724@demi> References: <20130912215641.GA6461@demi> <87y571p6dt.fsf@gmx.de> <20130916174453.GA8446@demi> <877gegrl8k.fsf@gmx.de> <20130917190523.GA7455@demi> <87mwnaockb.fsf@gmx.de> <20130918093341.GA13824@demi> <87li2ucufg.fsf@gmx.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87li2ucufg.fsf@gmx.de> User-Agent: Mutt/1.5.21 (2010-09-15) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:4010:c04::22a Cc: tramp-devel@gnu.org X-BeenThere: tramp-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 Sep 2013 13:33:30 -0000 On Wed, Sep 18, 2013 at 12:09:55PM +0200, Michael Albinus wrote: > Andrey Tykhonov writes: > > > Hi Michael! > > Hi Andrey, > > > This is not surprise for me as such hosts are very custom. They are not > > sterling FreeBSD. I'm not sure if I can install something there. But > > even I can then I'll be needed to install these things again, again and > > again, because such hosts has very short life, they reinstalls very > > often, from the scratch, from template which I'm not able to change... > > I see. However, Tramp is not fixed to use `id' and nothing else. It > needs `id' to recognize the user's uid and gid. If you could tell me, > what the counterparts of the respective commands are on the remote host, > I could teach Tramp to use them. Tramp needs to call the following > commands, which would require a replacement: Hi Michael, for sorry I didn't find any counterparts of the respective commands on the remote host. I investigated /etc/passwd and see that all users which I need (for login or file modifications) has 0 uid and 0 guid. So all users which I need are roots. All files on the remote host belongs to root:wheel. So, the following commands could return such values: > > # id -u 0 > # id -un a) Client's username (on remote host there are such usernames as usernames on client hosts from which I will be used Tramp) b) 'testuser' (there is such 'test' username on the remote host). c) Hmmm... Or it can be just a 'root'?.. 'testuser' -- seems will be suitable enough. > # id -g 0 > # id -gn wheel Could these values be used by Tramp as constants? In other case I could just create a little bash script which will return all these values. However seems constants is more preferable as in case of script I'll be needed to always upload it on the remote host. Best regards, Andrey > > > Best regards, > > Andrey > > Best regards, Michael. From MAILER-DAEMON Wed Sep 18 10:14:46 2013 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1VMIWj-0004Zt-RS for mharc-tramp-devel@gnu.org; Wed, 18 Sep 2013 10:14:46 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:52451) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VMIWa-0004Pt-Cl for tramp-devel@gnu.org; Wed, 18 Sep 2013 10:14:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VMIWQ-0003Yl-Kg for tramp-devel@gnu.org; Wed, 18 Sep 2013 10:14:36 -0400 Received: from mail-la0-x22f.google.com ([2a00:1450:4010:c03::22f]:55316) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VMIWQ-0003YY-Cb for tramp-devel@gnu.org; Wed, 18 Sep 2013 10:14:26 -0400 Received: by mail-la0-f47.google.com with SMTP id eo20so5616804lab.6 for ; Wed, 18 Sep 2013 07:14:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=laOm8kNnEX0wCc2Dhpnc4MA/sAi2rb1xwI6+oPe48cE=; b=WvX8GMLuBCrxz8Ir8xYtb1nRezPUg3OQLnmOCsFDf9L3w6a0E8HWoCWMMvWlSYZgzo kRKsr4PUUpmu6DmYRukVT0tH6eiQ/vH9hpaooe8X1PgoFjP0NTS1qqMMUuhwoxlfYCQy OfPUN+zmlJQDPsmDKiTgXHPG5b06ybXBzWhK3MATalIgNfI0sxBtXNO1+kOpgq24y1ik iVINFNgIv9Czqa1r1H1paUrDKMdRc/ZpLBpWuJ2bw6f07/cfJQ3CsL7ZtXaRp+0tvHe+ nqWPQvINmKiQWdjgs0vueLh5WnMLzoR8BYxTmWGcvnfnWyNuP9yd63U39XvfXyATQ++b bo1w== X-Received: by 10.112.182.66 with SMTP id ec2mr3670lbc.58.1379513665415; Wed, 18 Sep 2013 07:14:25 -0700 (PDT) Received: from demi (178-188-113-92.pool.ukrtel.net. [92.113.188.178]) by mx.google.com with ESMTPSA id rd5sm1644140lbb.16.1969.12.31.16.00.00 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Wed, 18 Sep 2013 07:14:24 -0700 (PDT) Date: Wed, 18 Sep 2013 17:13:14 +0300 From: Andrey Tykhonov To: Michael Albinus Subject: Re: Connect to the ssh and execute any command Message-ID: <20130918141314.GA6134@demi> References: <20130912215641.GA6461@demi> <87y571p6dt.fsf@gmx.de> <20130916174453.GA8446@demi> <877gegrl8k.fsf@gmx.de> <20130917190523.GA7455@demi> <87mwnaockb.fsf@gmx.de> <20130918093341.GA13824@demi> <87li2ucufg.fsf@gmx.de> <8761tycmd1.fsf@gmx.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <8761tycmd1.fsf@gmx.de> User-Agent: Mutt/1.5.21 (2010-09-15) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:4010:c03::22f Cc: "tramp-devel@gnu.org" X-BeenThere: tramp-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 Sep 2013 14:14:44 -0000 On Wed, Sep 18, 2013 at 03:04:10PM +0200, Michael Albinus wrote: > yary writes: > > > I'm not sure if perl is on Andrey's remote host, but I recall that > > other parts of Tramp uses it. So here are perl-based alternates to > > "id": > > > > # id -u > > perl -le 'print$>' > > > > # id -un > > perl -le 'print scalar getpwuid($>)' > > > > # id -g > > perl -le 'print($)=~/(\d+)/)' > > > > # id -gn > > perl -le 'print scalar getgrgid($))' > > Looks good, thanks! Andrey, do you have Perl there? I haven't perl, but there is python. So, python-based alternates to "id" could looks like: # id -u python -c 'import os; print os.getuid()' # id -un python -c 'import os; print os.getlogin()' # id -g python -c 'import os; print os.getgid()' # id -gn python -c 'import os, grp; print grp.getgrgid(os.getgid())[0]' Best regards, Andrey. > > > -y > > Best regards, Michael. From MAILER-DAEMON Wed Sep 18 10:24:40 2013 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1VMIgK-0006bm-Qm for mharc-tramp-devel@gnu.org; Wed, 18 Sep 2013 10:24:40 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:56729) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VMIgB-0006aZ-MW for tramp-devel@gnu.org; Wed, 18 Sep 2013 10:24:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VMIg4-0007S8-6i for tramp-devel@gnu.org; Wed, 18 Sep 2013 10:24:31 -0400 Received: from mout.gmx.net ([212.227.15.18]:59177) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VMIg3-0007Rs-U1 for tramp-devel@gnu.org; Wed, 18 Sep 2013 10:24:24 -0400 Received: from detlef.gmx.de ([91.41.129.9]) by mail.gmx.com (mrgmx103) with ESMTPS (Nemesis) id 0Lkwpt-1VwBBz2oWD-00alvM for ; Wed, 18 Sep 2013 16:24:23 +0200 From: Michael Albinus To: Andrey Tykhonov Subject: Re: Connect to the ssh and execute any command References: <20130912215641.GA6461@demi> <87y571p6dt.fsf@gmx.de> <20130916174453.GA8446@demi> <877gegrl8k.fsf@gmx.de> <20130917190523.GA7455@demi> <87mwnaockb.fsf@gmx.de> <20130918093341.GA13824@demi> <87li2ucufg.fsf@gmx.de> <8761tycmd1.fsf@gmx.de> <20130918141314.GA6134@demi> Date: Wed, 18 Sep 2013 16:24:21 +0200 In-Reply-To: <20130918141314.GA6134@demi> (Andrey Tykhonov's message of "Wed, 18 Sep 2013 17:13:14 +0300") Message-ID: <87y56ub42y.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K0:wsFwgzxjNqOOsDUsq022CFaHcgB1fUqPSUHRgzeZHu+tExrkK5U Zg1H7OZfsEGshiHUjbRlx9JMPJszk1hH/t4bYK0s328g/WF2+EMJTBgfbHW/8pNsAe1Djp9 nfo9ckNn6INSr/ZWgx9cCWxWloH4jlr1XnHdfsmfgO1w5+z8G19P07d1qlw4J5RJC3T7r1j S0D8hnVUVogV99+HSbFiw== X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 212.227.15.18 Cc: "tramp-devel@gnu.org" X-BeenThere: tramp-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 Sep 2013 14:24:39 -0000 Andrey Tykhonov writes: > I haven't perl, but there is python. > > So, python-based alternates to "id" could looks like: Well, looks also good. I will add both alternatives (perl-based and python-based) to Tramp. When finished, I'll ask you for test :-) > Best regards, Andrey. Best regards, Michael. From MAILER-DAEMON Wed Sep 18 10:46:53 2013 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1VMJ1p-00040D-A5 for mharc-tramp-devel@gnu.org; Wed, 18 Sep 2013 10:46:53 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:34094) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VMJ1f-0003y3-GP for tramp-devel@gnu.org; Wed, 18 Sep 2013 10:46:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VMJ1X-0006nY-4e for tramp-devel@gnu.org; Wed, 18 Sep 2013 10:46:43 -0400 Received: from mail-we0-x236.google.com ([2a00:1450:400c:c03::236]:56982) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VMJ1W-0006nK-Tb for tramp-devel@gnu.org; Wed, 18 Sep 2013 10:46:35 -0400 Received: by mail-we0-f182.google.com with SMTP id q59so6523575wes.41 for ; Wed, 18 Sep 2013 07:46:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=l7Hn/1pyhtsFW88a5Y/8CYqZTnpmfKKEQ99ZqHcI0Do=; b=IZ4D0T+VRHOaCzAhlGI1DLYdPb3B4OCQG+L1vBiai3drSlNSg6A3Wguok+UnklndqC nJQm6GE9+NDavvktuteqwduuSv2M2kb7SoDVsb3XuxO4Ad9KOUNGz/DGZyZBdweC/r5O cQgBTS+cfhGUnCVRtETB6JB+0B/AA+9EL3SmoEnRHyiArVPmEB5wmgzLQz6hh0PtX66e ErhNd9EVctvEyqJ2QqXErFimSR3+v4Hc3R4Ix+poCNTCZ7dL8riJX7YsGn7+0DPpD6kc QzcjcjcDH7YQCyrYJtGqL/epCL9BS1A9gQpjeGW9qeI9ordb0ydNVV24NctrIJqz6/oQ b0kA== X-Received: by 10.194.205.164 with SMTP id lh4mr2195362wjc.46.1379515593610; Wed, 18 Sep 2013 07:46:33 -0700 (PDT) Received: from demi (178-188-113-92.pool.ukrtel.net. [92.113.188.178]) by mx.google.com with ESMTPSA id i8sm2908151wiy.6.1969.12.31.16.00.00 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Wed, 18 Sep 2013 07:46:33 -0700 (PDT) Date: Wed, 18 Sep 2013 17:45:21 +0300 From: Andrey Tykhonov To: Michael Albinus Subject: Re: Connect to the ssh and execute any command Message-ID: <20130918144521.GB6134@demi> References: <20130916174453.GA8446@demi> <877gegrl8k.fsf@gmx.de> <20130917190523.GA7455@demi> <87mwnaockb.fsf@gmx.de> <20130918093341.GA13824@demi> <87li2ucufg.fsf@gmx.de> <8761tycmd1.fsf@gmx.de> <20130918141314.GA6134@demi> <87y56ub42y.fsf@gmx.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87y56ub42y.fsf@gmx.de> User-Agent: Mutt/1.5.21 (2010-09-15) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:400c:c03::236 Cc: "tramp-devel@gnu.org" X-BeenThere: tramp-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 Sep 2013 14:46:52 -0000 On Wed, Sep 18, 2013 at 04:24:21PM +0200, Michael Albinus wrote: > Andrey Tykhonov writes: > > > I haven't perl, but there is python. > > > > So, python-based alternates to "id" could looks like: > > Well, looks also good. I will add both alternatives (perl-based and > python-based) to Tramp. When finished, I'll ask you for test :-) Looking forward for these changes! Thank you, Michael! :-) > > > Best regards, Andrey. > > Best regards, Michael. From MAILER-DAEMON Thu Sep 19 06:40:42 2013 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1VMbf7-0004Do-Ui for mharc-tramp-devel@gnu.org; Thu, 19 Sep 2013 06:40:41 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:53049) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VMbf0-0004Db-Um for tramp-devel@gnu.org; Thu, 19 Sep 2013 06:40:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VMbeu-0005BV-Vz for tramp-devel@gnu.org; Thu, 19 Sep 2013 06:40:34 -0400 Received: from mout.gmx.net ([212.227.17.21]:51033) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VMbeu-0005BB-KT for tramp-devel@gnu.org; Thu, 19 Sep 2013 06:40:28 -0400 Received: from detlef.gmx.de ([91.41.129.133]) by mail.gmx.com (mrgmx102) with ESMTPS (Nemesis) id 0MLR30-1VM3h42Aza-000enV for ; Thu, 19 Sep 2013 12:40:24 +0200 From: Michael Albinus To: Andrey Tykhonov Subject: Re: Connect to the ssh and execute any command References: <20130916174453.GA8446@demi> <877gegrl8k.fsf@gmx.de> <20130917190523.GA7455@demi> <87mwnaockb.fsf@gmx.de> <20130918093341.GA13824@demi> <87li2ucufg.fsf@gmx.de> <8761tycmd1.fsf@gmx.de> <20130918141314.GA6134@demi> <87y56ub42y.fsf@gmx.de> <20130918144521.GB6134@demi> Date: Thu, 19 Sep 2013 12:40:23 +0200 In-Reply-To: <20130918144521.GB6134@demi> (Andrey Tykhonov's message of "Wed, 18 Sep 2013 17:45:21 +0300") Message-ID: <87k3idksbs.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K0:nj4bK9/WHGDVbFc5mKQ2pV2np1UCkPyGN3mxx+YUKPwuhrdjnEC q11VA1e2xYLZ+xBIo0eNJaMdmGh6QgbCZHKPbF28LxCHO6cpgfHcYR7jJ8tpYEyLdEdSJn6 gmGUCzCraxK/BVsxRztNyptV3LoBZHlCVDnR3XN8LJ/YjGg24sWEM6dGOSmb3mPjGHFzzbI Fq0GDYSe5t2K2/NURNAbA== X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [generic] X-Received-From: 212.227.17.21 Cc: "tramp-devel@gnu.org" X-BeenThere: tramp-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Sep 2013 10:40:40 -0000 Andrey Tykhonov writes: Hi Andrey, >> Well, looks also good. I will add both alternatives (perl-based and >> python-based) to Tramp. When finished, I'll ask you for test :-) > > Looking forward for these changes! I have committed a respective patch to Tramp's repository. I couldn't use Python's os.getlogin(), because Tramp has no terminal when connected to the remote host. So I have used pwd.getpwuid(os.getuid())[0] Cloning of Tramp from the git repository is described in . Your local manual might be out-of-date; likely it describes downloading via cvs, which is not supported anymore. > Thank you, Michael! :-) Best regards, Michael. From MAILER-DAEMON Thu Sep 19 22:51:11 2013 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1VMqoJ-0000Yp-Jj for mharc-tramp-devel@gnu.org; Thu, 19 Sep 2013 22:51:11 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:33138) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VMqoH-0000Yg-Ei for tramp-devel@gnu.org; Thu, 19 Sep 2013 22:51:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VMqoG-0000aa-Bs for tramp-devel@gnu.org; Thu, 19 Sep 2013 22:51:09 -0400 Received: from mail-qc0-x22c.google.com ([2607:f8b0:400d:c01::22c]:50021) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VMqoG-0000aV-74 for tramp-devel@gnu.org; Thu, 19 Sep 2013 22:51:08 -0400 Received: by mail-qc0-f172.google.com with SMTP id l13so6089895qcy.17 for ; Thu, 19 Sep 2013 19:51:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:message-id:from:to:subject:cc:user-agent:mime-version :content-type:content-transfer-encoding; bh=9BC1FNNKYRhhMEV629n7Hq21SRpupgWP3IO5i519gus=; b=GOP0xL1MvQIWd4rUPL1SncYyWvtvB/jBB0a0+plwDBAP3CnGQnksjfLRniJHKvYSbY rpvKrS3F2hx7QF9wdXklIJ6bPRHT6gn7Pm/c9vkovgnCE/ZupF8+VCjMZetRXj1kFf1c +Q4EnFcZcNOpW04+KgKLU14wwMM09SLg8E8xh3Qbt8ETBM/o5HZRH1ldFJQRW+WNYCgJ cIfkYGdRSFLbKwIbm0kXK3SSj7Z4q9zL3KYYiw1j2g451M2Nnvefge5IWT5lqPEMCt+T 2XjtDKr7A+OMBGZ++hlELV6CktcNhxRLnE/YuKt/Iory2RUlElWDpc0pIqDYOEdo14w/ GxJw== X-Received: by 10.49.2.68 with SMTP id 4mr1599611qes.64.1379645467262; Thu, 19 Sep 2013 19:51:07 -0700 (PDT) Received: from trauko.gmail.com ([2601:8:3000:1e0:d27:fe27:4c7e:f9da]) by mx.google.com with ESMTPSA id f5sm15528323qev.8.1969.12.31.16.00.00 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Thu, 19 Sep 2013 19:51:06 -0700 (PDT) Date: Thu, 19 Sep 2013 22:50:59 -0400 Message-ID: From: Rodrigo Amestica To: tramp-devel@gnu.org Subject: how to troubleshoot a slow connection? User-Agent: SEMI/1.14.7 (Harue) FLIM/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL/10.8 Emacs/24.3 (x86_64-unknown-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:400d:c01::22c X-BeenThere: tramp-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 Sep 2013 02:51:10 -0000 Hello, for some time now the connection to my remote development environment has degraded to a very slow status. I use ssh. I'm not fully sure, but it seems= to me that the slowness started happening after moving from emacs 24.2 to 24.3= and that happened back in April of this year. When I open a connection to my remote 'hostname' then in Messages I see the following logs: 1. Tramp: Waiting for prompts from remote shell 2. Tramp: Sending command `exec ssh -e none hostname' 3. Tramp: Found remote shell prompt on `hostname' 4. Tramp: Opening connection for hostname using ssh...done the time elapsed between #1 and #3 is ~5 seconds (#2 seems to go so fast in= the minibuffer that I cannot see it). The time elapsed between #3 and #4 is ~14 seconds! I have tried permanent ssh connections (ControlMaster) without any improvem= ent. If I start emacs like 'emacs -Q' then the above timing figures remain the s= ame. =46rom the command prompt, login (ssh) to the remote host takes ~5 seconds.= Which seems to match the same timing I see between logs #1 and #3. Is it there anything else I could do to troubleshoot my so slow connection? Thanks, Rodrigo emacs 24.3.1 tramp 2.2.6-24.3 From MAILER-DAEMON Fri Sep 20 03:01:31 2013 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1VMuiZ-0004Ys-Pj for mharc-tramp-devel@gnu.org; Fri, 20 Sep 2013 03:01:31 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:41951) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VMuiQ-0004Yk-Sz for tramp-devel@gnu.org; Fri, 20 Sep 2013 03:01:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VMuiJ-0000aw-If for tramp-devel@gnu.org; Fri, 20 Sep 2013 03:01:22 -0400 Received: from mout.gmx.net ([212.227.15.18]:65439) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VMuiJ-0000aO-9R for tramp-devel@gnu.org; Fri, 20 Sep 2013 03:01:15 -0400 Received: from detlef.gmx.de ([79.230.76.124]) by mail.gmx.com (mrgmx102) with ESMTPS (Nemesis) id 0M0Kp7-1WC8v90QxR-00uYSz for ; Fri, 20 Sep 2013 09:01:14 +0200 From: Michael Albinus To: Rodrigo Amestica Subject: Re: how to troubleshoot a slow connection? References: Date: Fri, 20 Sep 2013 09:01:12 +0200 In-Reply-To: (Rodrigo Amestica's message of "Thu, 19 Sep 2013 22:50:59 -0400") Message-ID: <87hadgt1s7.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K0:VpXN4jKezDjFH10vMzpXuCPNdbZrn8PTVbBUR+bl53wTl1di7XL 2NlP9HpNGQr58wE9aPWgACyllx75/Ms87LqkPqLl03o/89xBrSLcgymhpcTrelpZ69qwL7B wWXr/MVq1JXKEiHZyT8wiSQt6if9PUhVtYFF+wuG44H20EIO7Vcdgy+7yJh6Ia/b2OyLSuN QEJQDQRgDT1VgPb4z8BbQ== X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 212.227.15.18 Cc: tramp-devel@gnu.org X-BeenThere: tramp-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 Sep 2013 07:01:30 -0000 Rodrigo Amestica writes: > Hello, Hi Rodrigo, > for some time now the connection to my remote development environment > has degraded to a very slow status. I use ssh. I'm not fully sure, but > it seems to me that the slowness started happening after moving from > emacs 24.2 to 24.3 and that happened back in April of this year. > > Is it there anything else I could do to troubleshoot my so slow connection? Before opening a new connection, you should set tramp-verbose to 6. If you are curious you could use even a larger value up to 10, but the additional traces are almost interesting for the maintainers only. There will be a Tramp debug buffer. Cycle through this buffer, searching for "(6)". Then you will see all commands Tramp has sent (except passwords), and all responses from the remote host, including a timestamp. Here you will see where Tramp spends its time. You might compare this also with the same scenario in Emacs 24.2. There is also a difference, whether Tramp connects a remote host for the very first time, or whether it did in the past already. Tramp caches information about remote hosts, and reuses them in order to minimize remote commands. See the file "~/.emacs.d/tramp" for the cached information. If you remove this file prior starting Emacs, Tramp has no historical information. For a proper interpretation of the command sequence in the traces, you could come back here. And yes, there is still room for optimization; I'm open for proposals. > Thanks, > Rodrigo Best regards, Michael. From MAILER-DAEMON Wed Sep 25 19:27:25 2013 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1VOyUP-0006jc-4r for mharc-tramp-devel@gnu.org; Wed, 25 Sep 2013 19:27:25 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:37650) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VOyUN-0006hV-J4 for tramp-devel@gnu.org; Wed, 25 Sep 2013 19:27:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VOyUM-00060x-Ej for tramp-devel@gnu.org; Wed, 25 Sep 2013 19:27:23 -0400 Received: from mail-qe0-x230.google.com ([2607:f8b0:400d:c02::230]:58212) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VOyUM-00060s-AS for tramp-devel@gnu.org; Wed, 25 Sep 2013 19:27:22 -0400 Received: by mail-qe0-f48.google.com with SMTP id nd7so287372qeb.35 for ; Wed, 25 Sep 2013 16:27:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:message-id:from:to:cc:subject:in-reply-to:references :user-agent:mime-version:content-type; bh=0y85YZ44bskWTtjpoR7wyfame6zysGhA7fa0R0o8sxs=; b=DHxeXrVMW5jdkfmEUEsTZfYHJFM28VSOzSHFxnZK8lgF22Z/HEMl6HJYpUGRHzAT3M YKWm1vkGeHALovHBoG3YP0HLUbkjHK62wKY54kXtrfEZxh/wxHscV5l5hcrdKXBgUyIp Gc6p4msVrJ34rUHXSvuaIQ64sSL09IvIEeVoUlrWuowy1WpoFx7+RssXRwZx/E2ynjDm /IMwzwm9nwTDqyc00DGwwvN4b9esNnJWWM3ILTGaaBC5NDBFofRsvtkPBDNHn5CLyb+Z bFhMV8gKhFizDwC453QPGHZxY5XuZ1H/72y8mlSJY5MF8+Bh2Vc1pmwSG3cDc8V396iw ThLA== X-Received: by 10.49.132.233 with SMTP id ox9mr5921926qeb.36.1380151641442; Wed, 25 Sep 2013 16:27:21 -0700 (PDT) Received: from trauko.gmail.com ([2601:8:3000:1e0:2147:8acb:1b6c:49f0]) by mx.google.com with ESMTPSA id u4sm1313603qat.5.1969.12.31.16.00.00 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Wed, 25 Sep 2013 16:27:20 -0700 (PDT) Date: Wed, 25 Sep 2013 19:27:15 -0400 Message-ID: From: Rodrigo Amestica To: Michael Albinus Subject: Re: how to troubleshoot a slow connection? In-Reply-To: <87hadgt1s7.fsf@gmx.de> References: <87hadgt1s7.fsf@gmx.de> User-Agent: SEMI/1.14.7 (Harue) FLIM/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL/10.8 Emacs/24.3 (x86_64-unknown-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:400d:c02::230 Cc: tramp-devel@gnu.org X-BeenThere: tramp-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Sep 2013 23:27:24 -0000 Hello Michael, I have enabled verbose 6 and repeated the exercise. This time it took something like 25 seconds to complete the connection. I repeated once more (started emacs again) just to be sure that .emacs.d/tramp was present. The time it takes to print my remote bash login salutation is comparable to what it takes me to ssh from a normal xterm (~4 seconds). That makes sense. Then there is this line: 19:13:00.899977 tramp-send-command (6) # echo \"$PATH\" 2>/dev/null; echo tramp_exit_status $? followed by a printout of my local PATH. After that it goes doing a 'test -d' on every entry of that PATH (22 entries in my case) plus other 12 path directories that are not really in my local PATH. The total time expenditure of that exercise was ~8 seconds. Why is it checking on the remote host my local PATH? Can I disable that? 8 seconds is just a fraction of the total 25 seconds, but it seems to be a good starting point. Thanks, Rodrigo At Fri, 20 Sep 2013 09:01:12 +0200, Michael Albinus wrote: > > Rodrigo Amestica writes: > > > Hello, > > Hi Rodrigo, > > > for some time now the connection to my remote development environment > > has degraded to a very slow status. I use ssh. I'm not fully sure, but > > it seems to me that the slowness started happening after moving from > > emacs 24.2 to 24.3 and that happened back in April of this year. > > > > Is it there anything else I could do to troubleshoot my so slow connection? > > Before opening a new connection, you should set tramp-verbose to 6. If > you are curious you could use even a larger value up to 10, but the > additional traces are almost interesting for the maintainers only. > > There will be a Tramp debug buffer. Cycle through this buffer, searching > for "(6)". Then you will see all commands Tramp has sent (except > passwords), and all responses from the remote host, including a > timestamp. Here you will see where Tramp spends its time. > > You might compare this also with the same scenario in Emacs 24.2. > > There is also a difference, whether Tramp connects a remote host for the > very first time, or whether it did in the past already. Tramp caches > information about remote hosts, and reuses them in order to minimize > remote commands. See the file "~/.emacs.d/tramp" for the cached > information. If you remove this file prior starting Emacs, Tramp has no > historical information. > > For a proper interpretation of the command sequence in the traces, you > could come back here. And yes, there is still room for optimization; I'm > open for proposals. > > > Thanks, > > Rodrigo > > Best regards, Michael. From MAILER-DAEMON Thu Sep 26 08:10:00 2013 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1VPAOO-00035K-76 for mharc-tramp-devel@gnu.org; Thu, 26 Sep 2013 08:10:00 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:53485) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VPAOF-00034w-9b for tramp-devel@gnu.org; Thu, 26 Sep 2013 08:09:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VPAO7-0004Yr-VO for tramp-devel@gnu.org; Thu, 26 Sep 2013 08:09:51 -0400 Received: from mout.gmx.net ([212.227.17.22]:64632) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VPAO7-0004Yi-Kg for tramp-devel@gnu.org; Thu, 26 Sep 2013 08:09:43 -0400 Received: from detlef.gmx.de ([91.41.130.35]) by mail.gmx.com (mrgmx103) with ESMTPS (Nemesis) id 0LsD9n-1Vrfbe1oHH-013v0D for ; Thu, 26 Sep 2013 14:09:41 +0200 From: Michael Albinus To: Rodrigo Amestica Subject: Re: how to troubleshoot a slow connection? References: <87hadgt1s7.fsf@gmx.de> Date: Thu, 26 Sep 2013 14:09:35 +0200 In-Reply-To: (Rodrigo Amestica's message of "Wed, 25 Sep 2013 19:27:15 -0400") Message-ID: <87li2jpyww.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K0:qC0BGhuiHyGvu4x+Ibj7vCadg1Vzv+ppZfLe+BikBWUEAYhUYR4 p8DKgJRZGqsiF56SIy9MdMit3xxH4wSHkBj2dstZ5pWVEzL4xP/Wtc+W/WvFGIEyyXvOzSp i8WIQTpdJFJ0EI0eTX9AWiZaOovRl/sUw818g6NbrwK9mFhHsR7skMh1vIkDpdM9TJqtNYq C6snbKFu8pbCsr0wWFYBA== X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 212.227.17.22 Cc: tramp-devel@gnu.org X-BeenThere: tramp-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Sep 2013 12:09:58 -0000 Rodrigo Amestica writes: > Hello Michael, Hi Rodrigo, > 19:13:00.899977 tramp-send-command (6) # echo \"$PATH\" 2>/dev/null; > echo tramp_exit_status $? > > followed by a printout of my local PATH. After that it goes doing a 'test -d' on > every entry of that PATH (22 entries in my case) plus other 12 path directories > that are not really in my local PATH. The total time expenditure of that > exercise was ~8 seconds. > > Why is it checking on the remote host my local PATH? Can I disable that? Tramp checks all directories which are in the variable `tramp-remote-path'. You can customize this via M-x customize-variable RET tramp-remote-path RET Likely, it contains the entry "Private Directories" (in lisp, this is the entry `tramp-own-remote-path'). You could remove that, this are the directories from your local $PATH variable. > Thanks, > Rodrigo Best regards, Michael. From MAILER-DAEMON Fri Sep 27 12:03:42 2013 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1VPaW6-0004pY-JB for mharc-tramp-devel@gnu.org; Fri, 27 Sep 2013 12:03:42 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:35374) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VPaVz-0004nw-97 for tramp-devel@gnu.org; Fri, 27 Sep 2013 12:03:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VPaVt-0007v4-Mv for tramp-devel@gnu.org; Fri, 27 Sep 2013 12:03:35 -0400 Received: from mail-qc0-x22f.google.com ([2607:f8b0:400d:c01::22f]:43358) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VPaVt-0007uw-IS for tramp-devel@gnu.org; Fri, 27 Sep 2013 12:03:29 -0400 Received: by mail-qc0-f175.google.com with SMTP id v2so1845490qcr.6 for ; Fri, 27 Sep 2013 09:03:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:message-id:from:to:cc:subject:in-reply-to:references :user-agent:mime-version:content-type; bh=U/ozBwJaT2HWDTNTwR4vncE/bkHQSuY/q5Mj5rz6JWg=; b=ifjIlwyVZoduwA9DEqguSmPnfJIIYa52f4gbm8wYjhYyTCPC40e2iX5tFcMkfp1NEz hM8cVSHGNgXM8xc9334YKFgh4kib/FGpau0tX8pnbO2Yu+MI/tEnpmdkOZbjOs6znTVs v4ip+TDmYvxRS0DKvIIoSl5DT5NvCfiqZEM/cfYqIBYJfse1TVVtzTYa89yn00X1d39L FB+QkooeHl/r9/ZpC6XJ8iHTi/EH4AkHrk5qxMf0zeTEMDNeR7nq4b5oJ614U6J+Tan6 c+L2M4ucbeL/oiXaiwvY1eb23DZX81dNin8TfNXxhrKEuoU8e+mZ8ZX2j7cDuzhklOTD DzWw== X-Received: by 10.229.251.201 with SMTP id mt9mr10033597qcb.26.1380297808447; Fri, 27 Sep 2013 09:03:28 -0700 (PDT) Received: from trauko.gmail.com (cv-nat-A-128.cv.nrao.edu. [192.131.232.128]) by mx.google.com with ESMTPSA id n10sm3004241qas.5.1969.12.31.16.00.00 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Fri, 27 Sep 2013 09:03:27 -0700 (PDT) Date: Fri, 27 Sep 2013 12:03:21 -0400 Message-ID: From: Rodrigo Amestica To: Michael Albinus Subject: Re: how to troubleshoot a slow connection? In-Reply-To: <87li2jpyww.fsf@gmx.de> References: <87hadgt1s7.fsf@gmx.de> <87li2jpyww.fsf@gmx.de> User-Agent: SEMI/1.14.7 (Harue) FLIM/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL/10.8 Emacs/24.3 (x86_64-unknown-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:400d:c01::22f Cc: tramp-devel@gnu.org X-BeenThere: tramp-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Sep 2013 16:03:40 -0000 At Thu, 26 Sep 2013 14:09:35 +0200, Michael Albinus wrote: > > Rodrigo Amestica writes: > > > Hello Michael, > > Hi Rodrigo, > > > 19:13:00.899977 tramp-send-command (6) # echo \"$PATH\" 2>/dev/null; > > echo tramp_exit_status $? > > > > followed by a printout of my local PATH. After that it goes doing a 'test -d' on > > every entry of that PATH (22 entries in my case) plus other 12 path directories > > that are not really in my local PATH. The total time expenditure of that > > exercise was ~8 seconds. > > > > Why is it checking on the remote host my local PATH? Can I disable that? > > Tramp checks all directories which are in the variable > `tramp-remote-path'. You can customize this via > > M-x customize-variable RET tramp-remote-path RET > > Likely, it contains the entry "Private Directories" (in lisp, this is > the entry `tramp-own-remote-path'). You could remove that, > this are the directories from your local $PATH variable. > but as we discussed here http://lists.gnu.org/archive/html/help-gnu-emacs/2009-03/msg00540.html the only setting I explicitly do is this (add-to-list 'tramp-remote-path 'tramp-own-remote-path) It seems to me that if I remove it then I will loose the functionality of having my remote environment in place. Yes, just tried removing tramp-own-remote-path and loosing my remote environment is exactly what it happens. It is still puzzling to me why to 'test -d'-ing for local directories in the remote host. Thanks, Rodrigo > > Thanks, > > Rodrigo > > Best regards, Michael. From MAILER-DAEMON Fri Sep 27 12:22:34 2013 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1VPaoM-0001Ed-AS for mharc-tramp-devel@gnu.org; Fri, 27 Sep 2013 12:22:34 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:39158) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VPaoF-0001E3-Lz for tramp-devel@gnu.org; Fri, 27 Sep 2013 12:22:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VPao9-0005KE-Nl for tramp-devel@gnu.org; Fri, 27 Sep 2013 12:22:27 -0400 Received: from mout.gmx.net ([212.227.17.20]:59959) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VPao9-0005K8-EY for tramp-devel@gnu.org; Fri, 27 Sep 2013 12:22:21 -0400 Received: from detlef.gmx.de ([93.202.49.126]) by mail.gmx.com (mrgmx102) with ESMTPS (Nemesis) id 0Lg6op-1WEHom01Vr-00pbL2 for ; Fri, 27 Sep 2013 18:22:19 +0200 From: Michael Albinus To: Rodrigo Amestica Subject: Re: how to troubleshoot a slow connection? References: <87hadgt1s7.fsf@gmx.de> <87li2jpyww.fsf@gmx.de> Date: Fri, 27 Sep 2013 18:22:11 +0200 In-Reply-To: (Rodrigo Amestica's message of "Fri, 27 Sep 2013 12:03:21 -0400") Message-ID: <874n96xmj0.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K0:P8D7ppjYXJDgX8eluB+DZt0LWghzmBbYUtaFN7+Oja7xfyn288G UqoA7np5zEOkr4rxctY3JjCV+AJzGb3sJw1lXLxS+0RI6OozC1bKVdmTjbfz7mMkkfeEpo0 00pyRiRPmsJUYdmBS/Br2IlT54bX5oc+2PO5lNsgnQugbhrqO3Z7K8W/KiajIHGuJ59aDxm yTsit/MBh1LjA3F24ux0A== X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 212.227.17.20 Cc: tramp-devel@gnu.org X-BeenThere: tramp-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Sep 2013 16:22:33 -0000 Rodrigo Amestica writes: Hi Rodrigo, >> Likely, it contains the entry "Private Directories" (in lisp, this is >> the entry `tramp-own-remote-path'). You could remove that, >> this are the directories from your local $PATH variable. >> > > but as we discussed here > > http://lists.gnu.org/archive/html/help-gnu-emacs/2009-03/msg00540.html > > the only setting I explicitly do is this > > (add-to-list 'tramp-remote-path 'tramp-own-remote-path) This adds your own $PATH to Tramp's search list. > It seems to me that if I remove it then I will loose the functionality of having > my remote environment in place. > > Yes, just tried removing tramp-own-remote-path and loosing my remote environment > is exactly what it happens. > > It is still puzzling to me why to 'test -d'-ing for local directories in the > remote host. Tramp wants to know whether the respective directories do exist. If it searches for a program later on, it goes through this list of directories until it has found a proper one. > Thanks, > Rodrigo Best regards, Michael.