emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] Handling errors in command line exporting of agenda?


From: John Hendy
Subject: Re: [O] Handling errors in command line exporting of agenda?
Date: Mon, 8 Aug 2011 15:31:39 -0500

On Mon, Aug 8, 2011 at 3:22 PM, suvayu ali <address@hidden> wrote:
> Hi John,
>
> On Mon, Aug 8, 2011 at 9:48 PM, John Hendy <address@hidden> 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.
>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]