From mboxrd@z Thu Jan 1 00:00:00 1970 From: Magnus Henoch Subject: Re: org batch job using emacsclient? Date: Mon, 16 Nov 2009 14:07:04 +0000 Message-ID: <84tywu7ed3.fsf@linux-b2a3.site> References: <4A2B8DB1-1A56-40CA-B972-E44C16F9DD1E@nf.mpg.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NA2F5-0004Vw-Dz for emacs-orgmode@gnu.org; Mon, 16 Nov 2009 09:07:43 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NA2F0-0004V3-27 for emacs-orgmode@gnu.org; Mon, 16 Nov 2009 09:07:42 -0500 Received: from [199.232.76.173] (port=43227 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NA2Ez-0004V0-VB for emacs-orgmode@gnu.org; Mon, 16 Nov 2009 09:07:37 -0500 Received: from lo.gmane.org ([80.91.229.12]:39391) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NA2Ez-0001Xz-FE for emacs-orgmode@gnu.org; Mon, 16 Nov 2009 09:07:37 -0500 Received: from list by lo.gmane.org with local (Exim 4.50) id 1NA2Ev-0004Ax-Fl for emacs-orgmode@gnu.org; Mon, 16 Nov 2009 15:07:33 +0100 Received: from host213-123-170-251.in-addr.btopenworld.com ([213.123.170.251]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 16 Nov 2009 15:07:33 +0100 Received: from magnus.henoch by host213-123-170-251.in-addr.btopenworld.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 16 Nov 2009 15:07:33 +0100 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Stefan Vollmar writes: > cmd = emacsclient + " --eval " \ > + " \"(add-to-list 'load-path \\\"" + ORGLIB + "\\\")\"" \ > + " \"(require 'org)\"" \ > + " \"(require 'org-exp)\"" \ > + " \"(setq org-export-headline-levels 2)\"" \ > + " \"(load-file \\\"" + orgfile + "\\\")\"" \ > + " \"(org-export-as-html)\"" emacsclient --eval expects only a single form. Enclose all that in (progn ...) and it should work better. Magnus