From: Eric Schulte <schulte.eric@gmail.com>
To: Kel Chan <ktc7@sfu.ca>
Cc: emacs-orgmode@gnu.org
Subject: Re: #+CALL and remote execution
Date: Sat, 31 Aug 2013 10:57:34 -0600 [thread overview]
Message-ID: <87sixpvlvl.fsf@gmail.com> (raw)
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)")
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
prev parent reply other threads:[~2013-08-31 16:57 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[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 [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87sixpvlvl.fsf@gmail.com \
--to=schulte.eric@gmail.com \
--cc=emacs-orgmode@gnu.org \
--cc=ktc7@sfu.ca \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).