Hi Chuck, Attached is a new version of the patch, including a few more tests. I have one question: 2014ko abuztuak 28an, Aaron Ecay-ek idatzi zuen: >> but the patch here uses on.exit(file.create(...)) to ensure that that >> file is created. One hiccup (not sure if it exists in master,too) is >> that starting a remote session and then trying to run src blocks from >> a buffer for a local file will hang (because a local temp file is used >> for sentinel). So there is still stuff to do. > > Hmm, OK. Can you give a recipe to reproduce this? Everything seems to work for me using the following test code, although there is an unexplained ~10s delay while babel sits in the ‘(while (not (file-exists-p file)) ...)’ loop at the end of ‘org-babel-comint-eval-invisibly-and-wait-for-file’. ,---- | #+name: foo | #+begin_src R :session *foo* :dir /ssh:aecay@foo:/home/aecay :results output | 1+1 | #+end_src | | #+RESULTS: foo | : [1] 2 `---- Thanks, -- Aaron Ecay