org-babel with sudo
Reddit - Dive into anything - reddit.com
, #+BEGIN_SRC sh :var pw=(read-passwd "Password: ") :tangle no , echo $pw | sudo -S <your sudo command> , #+END_SRC
a better workflow is to use Tramp
, #+begin_src sh :dir /sudo:: :tangle no , <your sudo command> , #+end_src
잘된다.