[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] #+CALL and remote execution

From: Eric Schulte
Subject: Re: [O] #+CALL and remote execution
Date: Sat, 31 Aug 2013 10:57:34 -0600
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux)

Kel Chan <address@hidden> 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 /address@hidden:]
> 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

#+RESULTS: where
: /tmp

Call the above from somewhere else.

#+call: where[:dir /]()

: /


> cheers,
> kel

Eric Schulte
PGP: 0x614CA05D

reply via email to

[Prev in Thread] Current Thread [Next in Thread]