Search code examples
emacscronorg-mode

Emacs: batch processing of org mode files via crontab


I'm new to org-mode and wrote a file with Babel in a few languages. I would like the file to each day, running the code in the org file, on a remote server - I don't think that's important.

I wanted to do it with cron. I was trying something like

crontab emacs -batch -l my_file.org


Solution

  • Section 14.12 of the Org manual will be a good entry point for batch execution. Its online version can be found at http://orgmode.org/manual/Batch-execution.html. It introduces an example using org-babel-tangle, so you might want to replace org-babel-tangle with your own function.