From: Michael Albinus <michael.albinus@gmx.de>
To: Neil Best <nbest@ci.uchicago.edu>
Cc: emacs-orgmode@gnu.org
Subject: Re: remote execution in heterogeneous environment
Date: Sat, 01 Dec 2012 10:49:06 +0100 [thread overview]
Message-ID: <87wqx22jcd.fsf@gmx.de> (raw)
In-Reply-To: <CANVU8H1eOVbDMJ_VW2ByGA-gv7QPXXfMxtK8Z-uTOtWhCmqjhw@mail.gmail.com> (Neil Best's message of "Fri, 30 Nov 2012 14:13:01 -0600")
Neil Best <nbest@ci.uchicago.edu> writes:
> I had just recently upgraded Emacs through Macports but had not since
> restarted it, that's all. No such luck on the Tramp upgrade. I will
> just wait for the next release to propagate through Macports unless
> some intolerable behavior crops up. I do have a shiny new version of
> Org to play with thanks to ELPA. :)
There are still several problems, even with Tramp 2.2.6. I use Org
20121126 from ELPA.
1. test
=======
My local and remote hosts use "/tmp", both run Linux. So I have applied
prior to the test
--8<---------------cut here---------------start------------->8---
(setq temporary-file-directory "~/tmp/")
--8<---------------cut here---------------end--------------->8---
This directory is known to exist locally, but not remotely. When I eval
the source code block, I don't run into this infloop as you have seen
(this is fixed with Tramp 2.2.6, indeed). But there is another error
--8<---------------cut here---------------start------------->8---
Tramp: Decoding region into remote file /scpc:ford:/home/albinus/tmp/sh-205735cU...done
cond: Couldn't write region to `/scpc:ford:/home/albinus/tmp/sh-205735cU', decode using `base64 -d -i >%s' failed
--8<---------------cut here---------------end--------------->8---
Somewhere in the code, the remote temporary directory is created based
on `temporary-file-directory', which is wrong. I believe this is in
Org's code, must be debugged further.
2. test
=======
I keep `temporary-file-directory' as "/tmp". The source code block
evaluates fine, but the result is:
--8<---------------cut here---------------start------------->8---
#+BEGIN_SRC sh :dir /ford:~
echo "Executed by `whoami` on `hostname` in `pwd`"
#+END_SRC
#+RESULTS:
: Executed by albinus on detlef in /home/albinus
--8<---------------cut here---------------end--------------->8---
Obviously, the code is executed on the local host. As far as I could
debug it, this is because `org-babel-shell-command-on-region' calls
`call-process-region', which is not aware of remote execution.
>> PS: it's on my wishlist for a long time to learn org-mode. Maybe I have
>> a chance now.
>
> You won't regret it. Have fun. What's your use case?
Accessing lists on different devices, under Linux, Android etc.
> How did you happen to get on this thread? Was there a cross-post that
> I missed?
Nothing special. I have looked into the ML archive for some other
reason, and I have seen this thread by accident.
> Thanks for pitching in, everyone.
Best regards, Michael.
next prev parent reply other threads:[~2012-12-01 9:49 UTC|newest]
Thread overview: 40+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-11-29 16:48 remote execution in heterogeneous environment Neil Best
2012-11-29 17:05 ` Nick Dokos
2012-11-29 17:16 ` Nick Dokos
2012-11-29 21:48 ` Neil Best
[not found] ` <CANVU8H2wkXN90W+C24t75TDVEctGLqYOYi-H7e86_a2OkFFO8Q@mail.gmail.com>
[not found] ` <11047.1354217134@alphaville>
2012-11-29 22:07 ` Neil Best
2012-11-30 7:37 ` Michael Albinus
2012-11-30 15:33 ` Nick Dokos
2012-11-30 17:12 ` Michael Albinus
2012-11-30 18:24 ` Nick Dokos
2012-11-30 19:13 ` Michael Albinus
2012-11-30 18:02 ` Neil Best
2012-11-30 19:22 ` Michael Albinus
2012-11-30 20:13 ` Neil Best
2012-12-01 9:49 ` Michael Albinus [this message]
[not found] <6D36E0F9-01D1-4F95-9FAA-B2B2CA10E57E@gmail.com>
2012-12-18 7:56 ` Michael Albinus
2012-12-20 13:16 ` Michael Albinus
2012-12-20 16:39 ` Bastien
2012-12-20 16:59 ` Achim Gratz
2012-12-20 17:09 ` Nick Dokos
2012-12-20 17:15 ` Bastien
2012-12-20 17:12 ` Bastien
2012-12-20 20:25 ` Achim Gratz
2012-12-20 17:23 ` Michael Albinus
2012-12-20 17:30 ` Bastien
2012-12-21 8:24 ` Michael Albinus
2012-12-21 8:51 ` Bastien
2012-12-21 17:32 ` Nick Dokos
2012-12-21 1:21 ` George Jones
2012-12-21 8:27 ` Michael Albinus
2012-12-22 13:32 ` George
2012-12-22 13:36 ` George
2012-12-22 13:48 ` Michael Albinus
[not found] ` <CAOhM7yVOvrL0F8v1hAnxb4z0Mw0kTf6L6_uZk5o7T3W08geUeg@mail.gmail.com>
[not found] ` <CAOhM7yXmD3OEhBt66Ts9YG+8s9LKhkw0-BT0grh734fH07p2pw@mail.gmail.com>
2012-12-23 14:10 ` Michael Albinus
2012-12-23 15:14 ` Bastien
2012-12-23 16:09 ` Michael Albinus
2012-12-23 16:47 ` Bastien
2012-12-23 17:53 ` George Jones
2012-12-23 19:54 ` Bastien
2012-12-23 21:37 ` George Jones
2012-12-24 13:38 ` Michael Albinus
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=87wqx22jcd.fsf@gmx.de \
--to=michael.albinus@gmx.de \
--cc=emacs-orgmode@gnu.org \
--cc=nbest@ci.uchicago.edu \
/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.