From mboxrd@z Thu Jan 1 00:00:00 1970 From: suvayu ali Subject: Re: Handling errors in command line exporting of agenda? Date: Mon, 8 Aug 2011 23:46:50 +0200 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Return-path: Received: from eggs.gnu.org ([140.186.70.92]:40736) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QqXfE-0003MW-Lq for emacs-orgmode@gnu.org; Mon, 08 Aug 2011 17:47:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QqXfD-0005N2-N5 for emacs-orgmode@gnu.org; Mon, 08 Aug 2011 17:47:12 -0400 Received: from mail-fx0-f41.google.com ([209.85.161.41]:42867) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QqXfD-0005Mw-Gh for emacs-orgmode@gnu.org; Mon, 08 Aug 2011 17:47:11 -0400 Received: by fxg9 with SMTP id 9so5221097fxg.0 for ; Mon, 08 Aug 2011 14:47:10 -0700 (PDT) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: John Hendy Cc: emacs-orgmode Hi John, On Mon, Aug 8, 2011 at 9:48 PM, John Hendy wrote: > > emacs -batch -l ~/.emacs -eval '(find-file-read-only "~/org/*.org" t)' \ > -eval '(org-batch-agenda "e")' > ~/org/aux/agenda-export.txt > As I understand, with the above command the wildcard works but the file locking prevents you from running it as a cron job. I could not find a solution from a cursory search in the emacs and elisp manual. However I have an alternate solution. If you already have an emacs instance running, you could run your agenda export as a timer within emacs. I don't know about the exact implementation details, but I think you can find enough hints in the following Worg entry in org-hacks. GL -- Suvayu Open source is the future. It sets us free.