Emacs as an Org capture server
The general idea is to run an Emacs server as a daemon which clients can quickly connect to via a bash script. The client executes org-capture and the frame closes upon finalizing or aborting the capture.
Running a server daemon
The first step is to get an Emacs daemon running as a server with your name of choice. For this example, I’m going to use “capture” as the server name.