Previous: , Up: Working with source code   [Contents][Index]

14.12 Batch execution

Org mode features, including working with source code facilities can be invoked from the command line. This enables building shell scripts for batch processing, running automated system tasks, and expanding Org mode’s usefulness.

The sample script shows batch processing of multiple files using org-babel-tangle.

# tangle files with org-mode
emacs -Q --batch --eval "
      (require 'ob-tangle)
      (dolist (file command-line-args-left)
        (with-current-buffer (find-file-noselect file)
  " "$@"