Kel Chan <k...@sfu.ca> 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

Reply via email to