From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: [PATCH] ob-C.el: Fix command to perform on remote host Date: Tue, 25 Apr 2017 10:10:47 +0200 Message-ID: <87tw5czz3s.fsf@nicolasgoaziou.fr> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:40692) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d2vYl-0004Bv-TS for emacs-orgmode@gnu.org; Tue, 25 Apr 2017 04:10:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d2vYg-0007PG-RC for emacs-orgmode@gnu.org; Tue, 25 Apr 2017 04:10:55 -0400 Received: from relay7-d.mail.gandi.net ([2001:4b98:c:538::200]:48673) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1d2vYg-0007P4-KX for emacs-orgmode@gnu.org; Tue, 25 Apr 2017 04:10:50 -0400 Received: from relay3-d.mail.gandi.net (relay3-d.mail.gandi.net [217.70.183.195]) by relay7-d.mail.gandi.net (Postfix) with ESMTPS id EE9DC380C for ; Tue, 25 Apr 2017 10:10:48 +0200 (CEST) In-Reply-To: (=?utf-8?B?ItCY0LLQsNC9INCi0YDRg9GB0LrQvtCyIidz?= message of "Mon, 24 Apr 2017 09:53:38 +0300") 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" To: =?utf-8?B?0JjQstCw0L0g0KLRgNGD0YHQutC+0LI=?= Cc: emacs-orgmode Hello, =D0=98=D0=B2=D0=B0=D0=BD =D0=A2=D1=80=D1=83=D1=81=D0=BA=D0=BE=D0=B2 writes: > * lisp/ob-C.el (org-babel-C-execute): Made sure name of compiled > program is converted to local representation before sending it to the > shell on remote host. > > The problem was when one would try to evaluate C source code block in > the file on remote host. Compilation would go normally, then > evaluation will fail with error like "/bin/sh: unable to find file > prevents that. > > TINYCHANGE Applied. Thank you. > + (concat (org-babel-process-file-name tmp-bin-file) cmdline= )) I made that change at `tmp-bin-file' binding instead. Regards, --=20 Nicolas Goaziou