* org-babel: remote execution ?
@ 2013-03-12 22:18 Xavier Maillard
2013-03-12 22:54 ` Eric Schulte
0 siblings, 1 reply; 4+ messages in thread
From: Xavier Maillard @ 2013-03-12 22:18 UTC (permalink / raw)
To: emacs-orgmode
Hi there,
I am trying to get back to orgmode after years ;)
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.
Is it just possible to do that ? If not, are there any eev+org users
here ?
Regards
Thank you very much for your help.
/Xavier
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: org-babel: remote execution ?
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
0 siblings, 1 reply; 4+ messages in thread
From: Eric Schulte @ 2013-03-12 22:54 UTC (permalink / raw)
To: Xavier Maillard; +Cc: emacs-orgmode
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/
hostname
#+end_src
#+RESULTS:
: tortilla
--
Eric Schulte
http://cs.unm.edu/~eschulte
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: org-babel: remote execution ?
2013-03-12 22:54 ` Eric Schulte
@ 2013-03-12 23:21 ` Xavier Maillard
2013-03-12 23:50 ` Eric Schulte
0 siblings, 1 reply; 4+ messages in thread
From: Xavier Maillard @ 2013-03-12 23:21 UTC (permalink / raw)
To: emacs-orgmode
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 ?
Thnak you.
/Xavier
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: org-babel: remote execution ?
2013-03-12 23:21 ` Xavier Maillard
@ 2013-03-12 23:50 ` Eric Schulte
0 siblings, 0 replies; 4+ messages in thread
From: Eric Schulte @ 2013-03-12 23:50 UTC (permalink / raw)
To: Xavier Maillard; +Cc: emacs-orgmode
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
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2013-03-12 23:50 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
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.