On Mon, Aug 8, 2011 at 3:22 PM, suvayu ali <fatkasuvayu+li...@gmail.com> wrote: > Hi John, > > On Mon, Aug 8, 2011 at 9:48 PM, John Hendy <jw.he...@gmail.com> wrote: >> -batch -l ~/.emacs -eval > > Your problem is the long options are wrong. According to the manpages, > there should be 2 hyphens. > > --eval and --batch.
Well, that might be *a* problem, but it's not *the* problem. This produces the same results: ,--- | emacs --batch -l ~/.emacs --eval '(find-file-read-only "~/org/*.org" t)' \ | --eval '(org-batch-agenda "e")' > ~/org/aux/agenda-export.txt `--- I get this from the command line: ,--- | ...~/org/rigor.org locked by jwhendy... (pid 10935): (s, q, p, ?)? `--- Which means that when executed from cron, it won't proceed. Also, good to know re. the man pages... however Worg is wrong, then. Directly from Worg [1]: ,---------- | Let's say you generate an export from the command line, such as the following: | ,--- | | emacs -batch -l ~/.emacs -eval '(org-batch-agenda "e")' | `--- | | or | | ,--- | |emacs -batch -l ~/.emacs -eval '(org-publish-all)' | `--- `---------- The manual contains the same syntax. [2] [1] http://orgmode.org/worg/org-faq.html (see How can I preserve faces when I export an agenda from the command line?). [2] http://orgmode.org/manual/Extracting-agenda-information.html#Extracting-agenda-information Best regards, John > > GL > > -- > Suvayu > > Open source is the future. It sets us free. >