[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] remote execution in heterogeneous environment
From: |
Michael Albinus |
Subject: |
Re: [O] remote execution in heterogeneous environment |
Date: |
Sat, 01 Dec 2012 10:49:06 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) |
Neil Best <address@hidden> 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.
- Re: [O] remote execution in heterogeneous environment,
Michael Albinus <=
- Re: [O] remote execution in heterogeneous environment, Michael Albinus, 2012/12/18
- Re: [O] remote execution in heterogeneous environment, Michael Albinus, 2012/12/20
- Re: [O] remote execution in heterogeneous environment, Bastien, 2012/12/20
- Re: [O] remote execution in heterogeneous environment, Achim Gratz, 2012/12/20
- Re: [O] remote execution in heterogeneous environment, Nick Dokos, 2012/12/20
- Re: [O] remote execution in heterogeneous environment, Bastien, 2012/12/20
- Re: [O] remote execution in heterogeneous environment, Bastien, 2012/12/20
- Re: [O] remote execution in heterogeneous environment, Achim Gratz, 2012/12/20
- Re: [O] remote execution in heterogeneous environment, Michael Albinus, 2012/12/20
- Re: [O] remote execution in heterogeneous environment, Bastien, 2012/12/20