[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Cannot execute org babel shell script over tramp to remote termux (A

From: Matt Mello
Subject: Re: Cannot execute org babel shell script over tramp to remote termux (Android) due to tmpdir issues
Date: Thu, 5 Jul 2018 12:18:44 -0700


I can't send you the whole Android file.  I can send you the parts of interest ...

-*- coding: utf-8; -*-
#+EMAIL:     address@hidden
#+DATE:      $Date: 2018/07/05 18:56:22 $ $Revision: 1.1079 $
##+STARTUP:   indent 
#+OPTIONS:   H:3 num:nil toc:nil \n:nil @:t ::t |:t ^:t *:t TeX:t LaTeX:nil skip:t author:nil tags:nil timestamp:nil title:nil

#+BEGIN_SRC bash :results output
. ~/.bash_profile; 
cid && rcloneBackup 2>&1;

Obviously, anything could be in the org babel script, because it either runs or it doesn't.  So, there isn't a lot of value in what I have sent here.

The critical issue is that Termux does not allow write access to /tmp on the android device.  So, you have to use some other path for that.  I use the "home" directory in Termux via:
> set-variable org-babel-remote-temporary-directory
> "/data/data/com.termux/files/home/"


--- Matt

On Thu, Jul 5, 2018 at 12:05 PM Michael Albinus <address@hidden> wrote:
Matt Mello <address@hidden> writes:

Hi Matt,

> This worked:
> set-variable org-babel-remote-temporary-directory
> "/data/data/com.termux/files/home/"
> Since this is currently the only thing I do remotely, I can just
> hardcode this into my init script.  Let's call it a workaround.

We have connection-local variables in Emacs 26.1. Likely, they could be
used for this special setting.

> However, it seems that this is actually a bug in org-babel. 
> When running scripts remotely, org-babel should probably use the same
> logic that tramp does ... or else just let tramp do the calculations,
> like other parts of emacs do.


Would you like to send me your org-babel script (or the org file you
have on the Android device, respectively). Then I could do my own tests.

Your other emails I will check tomorrow, when I have more time.

> Thanks!
> --- Matt

Best regards, Michael.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]