When I execute a long running script within the org mode, emacs freezes. Is there a way to see the (running) output of the script? Alternatively, is there a way to run script asynchronously, and then get the output back into the org buffer?
I run my shell scripts the following way:
#+BEGIN_SRC shell
ls
#+END_SRC
Thank you!
Edit: May be there is a way to run the command in a separate buffer, to observe output, and the put truncated output back to the main buffer?
org-mode
? – lawlist May 1 '20 at 2:28(require 'ob-shell)
. – lawlist May 1 '20 at 6:21process-file
, which callscall-process
-- both of which have an optional argument for DISPLAY, with limitation notations in the doc-strings; e.g., "Some file handlers might not support all variants, for example they might behave as if DISPLAY was nil, regardless of the actual value passed." I tried using the DISPLAY argument, but that did not appear to achieve your desired affect. You may wish to explore working on a custom solution that utilizesstart-process
instead ... – lawlist May 2 '20 at 3:05