From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: remote execution in heterogeneous environment Date: Fri, 30 Nov 2012 10:33:25 -0500 Message-ID: <25750.1354289605@alphaville> References: <87mwxz7d8s.fsf@gmx.de> Reply-To: nicholas.dokos@hp.com Return-path: Received: from eggs.gnu.org ([208.118.235.92]:54596) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TeSay-0003w9-Lw for emacs-orgmode@gnu.org; Fri, 30 Nov 2012 10:33:41 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TeSas-0007EM-Jk for emacs-orgmode@gnu.org; Fri, 30 Nov 2012 10:33:40 -0500 Received: from g6t0184.atlanta.hp.com ([15.193.32.61]:3830) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TeSas-0007Ct-DT for emacs-orgmode@gnu.org; Fri, 30 Nov 2012 10:33:34 -0500 In-Reply-To: Message from Michael Albinus of "Fri, 30 Nov 2012 08:37:23 +0100." <87mwxz7d8s.fsf@gmx.de> 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: Michael Albinus Cc: Neil Best , emacs-orgmode@gnu.org Michael Albinus wrote: > 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? > See http://thread.gmane.org/gmane.emacs.orgmode/62963 It was a weird setting of the variable ``temporary-file-directory'' in Neil's Macport setup, plus the assumption by tramp that that setting was valid for the remote - that turned out to be a bad assumption. Not sure it's worth it for tramp to provide a way to customize that, but that's your decision :-) AFAIAC, /tmp should be a universal standard. Nick