From: Eric Schulte <schulte.eric@gmail.com>
To: Xavier Maillard <xavier@maillard.im>
Cc: emacs-orgmode@gnu.org
Subject: Re: org-babel: remote execution ?
Date: Tue, 12 Mar 2013 17:50:38 -0600 [thread overview]
Message-ID: <87sj40dvox.fsf@gmail.com> (raw)
In-Reply-To: <m238w0qk5s.fsf@kcals.intra.maillard.im> (Xavier Maillard's message of "Wed, 13 Mar 2013 00:21:19 +0100")
Xavier Maillard <xavier@maillard.im> writes:
> Eric Schulte <schulte.eric@gmail.com> writes:
>
>> Xavier Maillard <xavier@maillard.im> writes:
>
> [ SNIP ]
>
>>> Today, I tried to use org-babel for the first time with thing like that:
>>>
>>> #+begin_src sh
>>> echo $ORACLE_SID
>>> #+end_src
>>>
>>> My goal is to execute this block on a remote machine. I RTFM'ed but I
>>> could not find where this is described.
>>>
>>
>> You can use the :dir header argument for remote execution.
>>
>> #+begin_src sh :dir /ssh:tortilla:/tmp/
>> hostname
>> #+end_src
>>
>> #+RESULTS:
>> : tortilla
>
> Great ! I will try that then. Does it mimic TRAMP syntax thus I could
> also use also telnet or anything supported by TRAMP ?
>
Yes,
In fact it uses tramp. See http://orgmode.org/manual/dir.html.
Cheers,
>
> Thnak you.
>
> /Xavier
>
>
--
Eric Schulte
http://cs.unm.edu/~eschulte
prev parent reply other threads:[~2013-03-12 23:50 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-03-12 22:18 org-babel: remote execution ? Xavier Maillard
2013-03-12 22:54 ` Eric Schulte
2013-03-12 23:21 ` Xavier Maillard
2013-03-12 23:50 ` 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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87sj40dvox.fsf@gmail.com \
--to=schulte.eric@gmail.com \
--cc=emacs-orgmode@gnu.org \
--cc=xavier@maillard.im \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.