[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
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