Matt Mello <[email protected]> writes: Hi Matt,
> When I hit C-c C-c in the bash script, it attempts to run it on the > remote termux/Android environment and always gives this error: > > " > Tramp: Decoding remote file ‘/scp:phone#8022:/tmp/ob-input-NNFaG8’ > using ‘base64 -d -i >%s’...failed > tramp-file-name-handler: Couldn’t write region to > ‘/scp:phone#8022:/tmp/ob-input-NNFaG8’, decode using ‘base64 -d -i >>%s’ failed > " > > I noticed in > https://www.gnu.org/software/emacs/manual/html_node/tramp/Android-shell-setup.html#Android-shell-setup > > that the following is recommended: > > " > When the Android device is not ‘rooted’, specify a writable directory > for temporary files: > (add-to-list 'tramp-remote-process-environment "TMPDIR=$HOME") > " > > So, I have added that to my init script, but I still get the error. > No matter what I do, tramp always has tramp-tmpdir set to /tmp. Setting a remote $TMPDIR is good for the programs which run on a remote host. Tramp itself does not use $TMPDIR on that remote machine, because it must now about the location of a remote tmpdir much earlier. Tramp can be configured to use a dedicated temporary directory on a remote host. See <https://www.gnu.org/software/emacs/manual/html_node/tramp/Predefined-connection-information.html#Predefined-connection-information> for information how connection related information could be specified. In your case, I would try (add-to-list 'tramp-connection-properties (list (regexp-quote "/scp:phone#8022:") "tmpdir" "/path/to/tmpdir")) If this doean't help, set `tramp-verbose' to 6, and show the resulting Tramp debug buffer. > Thanks! > --- Matt Best regards, Michael. _______________________________________________ Tramp-devel mailing list [email protected] https://lists.gnu.org/mailman/listinfo/tramp-devel
