From mboxrd@z Thu Jan 1 00:00:00 1970 From: Adam Spiers Subject: Re: org batch job using emacsclient? Date: Mon, 16 Nov 2009 11:13:58 +0000 Message-ID: <20091116111358.GA25764@atlantic.linksys.moosehall> References: <4A2B8DB1-1A56-40CA-B972-E44C16F9DD1E@nf.mpg.de> Reply-To: Adam Spiers 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 1N9zXC-0003UU-5i for emacs-orgmode@gnu.org; Mon, 16 Nov 2009 06:14:14 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N9zX6-0003Te-QA for emacs-orgmode@gnu.org; Mon, 16 Nov 2009 06:14:13 -0500 Received: from [199.232.76.173] (port=42609 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N9zX6-0003Tb-JC for emacs-orgmode@gnu.org; Mon, 16 Nov 2009 06:14:08 -0500 Received: from vpn.id2.novell.com ([195.33.99.129]:47938 helo=gwia-smtp.id2.novell.com) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1N9zX5-0003Fi-U0 for emacs-orgmode@gnu.org; Mon, 16 Nov 2009 06:14:08 -0500 Content-Disposition: inline In-Reply-To: <4A2B8DB1-1A56-40CA-B972-E44C16F9DD1E@nf.mpg.de> 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 Hi Stefan, On Mon, Nov 16, 2009 at 09:51:38AM +0100, Stefan Vollmar wrote: [snipped] > To improve performance, we want to switch to emacsclient but we are > not sure how to adapt the above code to do this. Our first attempt: > > 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)\"" > > did not work. > Any help is appreciated. Can you elaborate on what you mean by "did not work" - what happened exactly? Regards, Adam