From mboxrd@z Thu Jan 1 00:00:00 1970 From: lanas Subject: Converting to html in a shell script Date: Wed, 12 Mar 2008 20:01:41 -0400 Message-ID: <20080312200141.4273426f@mistral.stie> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JZatv-0007su-99 for emacs-orgmode@gnu.org; Wed, 12 Mar 2008 20:02:27 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JZats-0007sU-Q3 for emacs-orgmode@gnu.org; Wed, 12 Mar 2008 20:02:25 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JZats-0007sO-Gp for emacs-orgmode@gnu.org; Wed, 12 Mar 2008 20:02:24 -0400 Received: from ms.securenet.net ([205.236.147.20]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JZats-0000lX-3x for emacs-orgmode@gnu.org; Wed, 12 Mar 2008 20:02:24 -0400 Received: from localhost (localhost [127.0.0.1]) by ms.securenet.net (Postfix) with ESMTP id CF6F25CE0E for ; Wed, 12 Mar 2008 20:02:22 -0400 (EDT) Received: from ms.securenet.net ([127.0.0.1]) by localhost (ms.securenet.net [127.0.0.1]) (amavisd-new, port 10025) with ESMTP id DLSSYEm5lClK for ; Wed, 12 Mar 2008 20:02:21 -0400 (EDT) Received: from mistral.stie (mtl-pppoe-adsl668.securenet.net [66.38.238.159]) by ms.securenet.net (Postfix) with ESMTP id AEBB55CD26 for ; Wed, 12 Mar 2008 20:02:21 -0400 (EDT) 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 all, I would like to convert an org file to HTML, much like C-c C-e h would do, automatically from a shell script. So far I've tried unsuccesfully some permutaions of: emacs -batch -l ~/.emacs -eval '(org-export-as-html "./file.org")' emacs -batch -l ~/.emacs -eval '(org-export-as-html)' ./file.org Is it at all possible and if so, what would be the actual way of calling emacs to do this ? Thanks, Al