emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
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 16:54:52 -0600	[thread overview]
Message-ID: <87wqtcdy9v.fsf@gmail.com> (raw)
In-Reply-To: <m27glcqn2a.fsf@kcals.intra.maillard.im> (Xavier Maillard's message of "Tue, 12 Mar 2013 23:18:37 +0100")

Xavier Maillard <xavier@maillard.im> writes:

> Hi there,
> I am trying to get back to orgmode after years ;)

Welcome back!

> I developed my own spartian note-jotting mode for emacs but I do not
> track my TODOs with that and thus, I am totally dis-org-anized :D I am
> also an eev-mode fan to do all sort of stuff.
> 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/

: tortilla

Eric Schulte

  reply	other threads:[~2013-03-12 22:56 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 [this message]
2013-03-12 23:21   ` Xavier Maillard
2013-03-12 23:50     ` Eric Schulte

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:

  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=87wqtcdy9v.fsf@gmail.com \
    --to=schulte.eric@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=xavier@maillard.im \


* 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


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).