How to share variables' values in org-mode between different sessions?
Simple example: in session one I create _gpg_tmpdir
#+name: make_temporary_directories
#+begin_src bash :session *one*
_gpg_tmpdir="$( mktemp -d )"
#+end_src
and need to clean up it in session two:
#+name: clean_temporary_directories
#+begin_src bash :session *two*
rm -rf $_gpg_tmpdir
#+end_src
The example is for the demonstration purpose only. The question is what is the less painfull way to share variables between different code sessions (perhaps with different code languages) in org-mode.
XY problem? en.wikipedia.org/wiki/XY_problem Maybe clarify why you want to do this. The entire point ofsessionsis to keep things separate. If you must communicate between the two, this may not be an Org question but a generalhow do I share data between bash processesquestion.set > .state-0000andsource .state-0000. It works but I don't like it.