From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Schulte Subject: Re: #+CALL and remote execution Date: Sat, 31 Aug 2013 10:57:34 -0600 Message-ID: <87sixpvlvl.fsf@gmail.com> References: <1161481182.166827097.1377893582168.JavaMail.root@jaguar7.sfu.ca> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:49855) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VFoUF-0000Ie-N0 for emacs-orgmode@gnu.org; Sat, 31 Aug 2013 12:57:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VFoU9-00071s-Jz for emacs-orgmode@gnu.org; Sat, 31 Aug 2013 12:57:23 -0400 Received: from mail-pb0-x231.google.com ([2607:f8b0:400e:c01::231]:63700) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VFoU9-00071n-CP for emacs-orgmode@gnu.org; Sat, 31 Aug 2013 12:57:17 -0400 Received: by mail-pb0-f49.google.com with SMTP id xb4so3078621pbc.22 for ; Sat, 31 Aug 2013 09:57:16 -0700 (PDT) In-Reply-To: <1161481182.166827097.1377893582168.JavaMail.root@jaguar7.sfu.ca> (Kel Chan's message of "Fri, 30 Aug 2013 13:13:02 -0700 (PDT)") 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: Kel Chan Cc: emacs-orgmode@gnu.org Kel Chan writes: > Hi list, > > I'm implementing an executable worksheet in org and wonder if I can call a source block with a :dir arguments. > > It doesn't seem orgmode support this out of the box. I tried #+CALL: > ping-network()[:results values replace :dir /posiadmin@10.161.25.37:] > and noticed two problems: the :dir argument was ignored and only the > first row of output was shown in #+RESULT block. > > any ideas for workarounds? > Indeed it is possible to pass the :dir header argument through a call line. See the description of call line syntax in the manual. #+name: where #+begin_src sh pwd #+end_src #+RESULTS: where : /tmp Call the above from somewhere else. #+call: where[:dir /]() #+RESULTS: : / Cheers, > > cheers, > kel > -- Eric Schulte https://cs.unm.edu/~eschulte PGP: 0x614CA05D