0

Is it possible to have an org-babel snippet that calls itself periodically e.g. every second and updates its RESULTS output?

#+BEGIN_SRC emacs-lisp
  (current-time-string)
#+END_SRC

The following snippet freezes my emacs:
#+BEGIN_SRC sh :async
  while true; do date; sleep 1 ; done
#+END_SRC

If possible, I was planning to use it for http & sql org-babel snippets, emacs-lisp example above is the simplest example.

1
  • You can do it with timers: do C-h i g (elisp) timers for info.
    – NickD
    Mar 10 at 16:09

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.