What is the best way to view the live output of a long shell process in Emacs without making it han…
انتشار: 2026/08/14 22:07 UTCدریافت: 2026/08/16 09:30 UTCآخرین مشاهده: 2026/08/16 09:30 UTC
What is the best way to view the live output of a long shell process in Emacs without making it hang AND capture it into and org-babel #+RESULTS: as well?I want to capture the screen output of long running scripts like Debian upgrades in Emacs without Emacs hanging.I usually capture the output into an org-babel src text block for review but Emacs hangs during the process and when I do it :async it fails with the Error in process sentinel message.Piping the output into a file and using the tail command to view it one of Emac's terminal packages could probably do the trick. The filename could be linked into the org region using org-transclusion or some other similar method.My current approach is to run command 2>&1 | tee outputfile and that usually guarantees that all the output will appear in the :wrap src text regardless of any errors, rather than the Org error buffer.In my limited experience this would be equivalent to getting Emacs to inject the execution of the command into a gnu screen or tmux session so the output would be visible in that screen via term or eat and the results would still be captured in the #+RESULTS: block.Any ideas or existing solutions for this issue?redd.it/1voj7u4@r_emacs