From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Albinus Subject: Re: remote execution in heterogeneous environment Date: Fri, 30 Nov 2012 08:37:23 +0100 Message-ID: <87mwxz7d8s.fsf@gmx.de> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:45219) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TeLAD-0001AF-Gi for emacs-orgmode@gnu.org; Fri, 30 Nov 2012 02:37:34 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TeLAB-0005YT-HX for emacs-orgmode@gnu.org; Fri, 30 Nov 2012 02:37:33 -0500 Received: from mailout-de.gmx.net ([213.165.64.23]:59062) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1TeLAB-0005YC-6i for emacs-orgmode@gnu.org; Fri, 30 Nov 2012 02:37:31 -0500 In-Reply-To: (Neil Best's message of "Thu, 29 Nov 2012 16:48:40 +0000 (UTC)") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Neil Best Cc: emacs-orgmode@gnu.org Neil Best writes: Hi, > I run Macport's Emacs and ELPA's Org on my Mac but my data lives in a > Red Hat environment. I thought I could edit locally and compute > remotely but there seems to be a problem with temp files for executing > source blocks. > > #+BEGIN_SRC sh :dir /midway:~ echo "Executed by `whoami` on `hostname` > in `pwd`" #+END_SRC > > Results are empty and in the message buffers appears this: > > executing Sh code block... Tramp: Opening connection for midway using > ssh... > > Opening connection for midway using ssh... \ Tramp: Opening connection > for midway using ssh...done Tramp: Encoding region using function > `base64-encode-region'...done Tramp: Decoding region into remote file > /ssh:midway:/var/folders/2y/qrw3hhkx0dlb9sbl51mjy5wm0000gn/T/sh-510999vN...done > byte-code: Couldn't write region to > `/ssh:midway:/var/folders/2y/qrw3hhkx0dlb9sbl51mjy5wm0000gn/T/sh-510999vN', > decode using `base64 -d -i >%s' failed Which version of Tramp are you using? You find it by "C-h v tramp-version". I remember a problem with remote temporary directories, fixed in Tramp 2.2.6. Btw, I don't use org. For local tests, what shall I apply in order to execute the code in #+BEGIN_SRC ... #+END_SRC? Best regards, Michael (Tramp maintainer).