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 20:59:43 +0200 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([140.186.70.92]:60533) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QqV3f-0001Au-En for emacs-orgmode@gnu.org; Mon, 08 Aug 2011 15:00:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QqV3e-0003Br-EF for emacs-orgmode@gnu.org; Mon, 08 Aug 2011 15:00:15 -0400 Received: from mail-fx0-f41.google.com ([209.85.161.41]:39987) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QqV3e-00037C-9h for emacs-orgmode@gnu.org; Mon, 08 Aug 2011 15:00:14 -0400 Received: by fxg9 with SMTP id 9so5064033fxg.0 for ; Mon, 08 Aug 2011 12:00:03 -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 8:53 PM, John Hendy wrote: >> If you can use wildcards to specify your files, it might be possible by >> just one extra call to --eval. Something like this might work: >> >> emacs --batch -l ~/.emacs --eval '(find-file-read-only "" t)' = \ >> =A0 =A0 =A0--eval '(org-batch-agenda "w")' > ~/org/aux/agenda-export.txt >> > > Hmm. That might work. Everything I pull from is in ~/org... could the > wildcard simply be "~/*.org"? Forgive my emacs wildcard ignorance. As far as I know, emacs accepts any wildcard that is valid in the shell. Since all your files are in ~/org, I would say try "~/org/*.org". The '~/org/' limits it to files within your org directory and the '*.org'[1] limits it to all files with a .org extension. I hope this helps. :) Footnotes: [1] The asterisk (*) stands for zero or more characters. You can find more details in `man bash` under the heading "Pattern Matching". --=20 Suvayu Open source is the future. It sets us free.