From mboxrd@z Thu Jan 1 00:00:00 1970 From: Chunyang Xu Subject: Bug: Can't execute C code block from remote directory [9.0.5 (release_9.0.5-401-g86ff11 @ /Users/xcy/src/org-mode/lisp/)] Date: Sat, 01 Apr 2017 23:22:42 +0800 Message-ID: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:56328) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cuKrb-0000vs-3V for emacs-orgmode@gnu.org; Sat, 01 Apr 2017 11:22:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cuKrX-00022A-TR for emacs-orgmode@gnu.org; Sat, 01 Apr 2017 11:22:51 -0400 Received: from smtpbg65.qq.com ([103.7.28.233]:54288) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cuKrX-0001wU-D8 for emacs-orgmode@gnu.org; Sat, 01 Apr 2017 11:22:47 -0400 Received: from Chunyangs-MacBook-Air.local (unknown [121.234.17.244]) by esmtp4.qq.com (ESMTP) with SMTP id 0 for ; Sat, 01 Apr 2017 23:22:38 +0800 (CST) 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: emacs-orgmode@gnu.org Hi. My computer is running Mac OS, I would like to run some C code from my VPS which is running GNU/Linux Ubuntu. For example, #+BEGIN_SRC C :dir /ssh:xuchunyang.me: puts("Hello, World!"); #+END_SRC but when I execute this code block with C-c C-c, it popups *Org-Babel Error Output* and here is its contents /bin/sh: 1: /ssh:xuchunyang.me:/tmp/C-bin-18285iKe: not found However, the file does exist and produce the desired output #+BEGIN_SRC sh :dir /ssh:xuchunyang.me: /tmp/C-bin-18285U4c #+END_SRC #+RESULTS: | Hello | World! | -- Emacs : GNU Emacs 26.0.50 (build 10, x86_64-apple-darwin16.4.0, NS appkit-1504.81 Version 10.12.3 (Build 16D32)) of 2017-03-28 Package: Org mode version 9.0.5 (release_9.0.5-401-g86ff11 @ /Users/xcy/src/org-mode/lisp/)