From mboxrd@z Thu Jan 1 00:00:00 1970 From: Xavier Maillard Subject: Re: org-babel: remote execution ? Date: Wed, 13 Mar 2013 00:21:19 +0100 Message-ID: References: <87wqtcdy9v.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:47190) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UFYSu-0006pn-1m for emacs-orgmode@gnu.org; Tue, 12 Mar 2013 19:18:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UFYSr-0000Hb-MD for emacs-orgmode@gnu.org; Tue, 12 Mar 2013 19:18:39 -0400 Received: from plane.gmane.org ([80.91.229.3]:34372) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UFYSr-0000HH-EX for emacs-orgmode@gnu.org; Tue, 12 Mar 2013 19:18:37 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1UFYTA-00027o-SY for emacs-orgmode@gnu.org; Wed, 13 Mar 2013 00:18:56 +0100 Received: from mail.maillard.im ([88.164.105.66]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 13 Mar 2013 00:18:56 +0100 Received: from xavier by mail.maillard.im with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 13 Mar 2013 00:18:56 +0100 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: emacs-orgmode@gnu.org Eric Schulte writes: > Xavier Maillard writes: [ SNIP ] >> Today, I tried to use org-babel for the first time with thing like that: >> >> #+begin_src sh >> echo $ORACLE_SID >> #+end_src >> >> My goal is to execute this block on a remote machine. I RTFM'ed but I >> could not find where this is described. >> > > You can use the :dir header argument for remote execution. > > #+begin_src sh :dir /ssh:tortilla:/tmp/ > hostname > #+end_src > > #+RESULTS: > : tortilla Great ! I will try that then. Does it mimic TRAMP syntax thus I could also use also telnet or anything supported by TRAMP ? Thnak you. /Xavier