emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* #+CALL and remote execution
       [not found] <746477445.166779062.1377892460112.JavaMail.root@jaguar7.sfu.ca>
@ 2013-08-30 20:13 ` Kel Chan
  2013-08-31 16:57   ` Eric Schulte
  0 siblings, 1 reply; 2+ messages in thread
From: Kel Chan @ 2013-08-30 20:13 UTC (permalink / raw)
  To: emacs-orgmode

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?

cheers,
kel

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: #+CALL and remote execution
  2013-08-30 20:13 ` #+CALL and remote execution Kel Chan
@ 2013-08-31 16:57   ` Eric Schulte
  0 siblings, 0 replies; 2+ messages in thread
From: Eric Schulte @ 2013-08-31 16:57 UTC (permalink / raw)
  To: Kel Chan; +Cc: emacs-orgmode

Kel Chan <ktc7@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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-08-31 16:57 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <746477445.166779062.1377892460112.JavaMail.root@jaguar7.sfu.ca>
2013-08-30 20:13 ` #+CALL and remote execution Kel Chan
2013-08-31 16:57   ` Eric Schulte

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).