From mboxrd@z Thu Jan 1 00:00:00 1970 From: Herbert Sitz Subject: Re: Problem with ditaa when doing export from command line Date: Fri, 10 Jun 2011 20:54:39 +0000 (UTC) Message-ID: References: <44422493-1A8F-43B6-8051-945C794DFA57@gmail.com> <6075.1307722907@alphaville.americas.hpqcorp.net> <8619.1307734966@alphaville.americas.hpqcorp.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([140.186.70.92]:42498) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QV8jK-0000GM-BD for emacs-orgmode@gnu.org; Fri, 10 Jun 2011 16:54:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QV8jI-0002JM-On for emacs-orgmode@gnu.org; Fri, 10 Jun 2011 16:54:58 -0400 Received: from lo.gmane.org ([80.91.229.12]:51903) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QV8jI-0002JG-6c for emacs-orgmode@gnu.org; Fri, 10 Jun 2011 16:54:56 -0400 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1QV8jG-0003zY-W4 for emacs-orgmode@gnu.org; Fri, 10 Jun 2011 22:54:55 +0200 Received: from c-24-22-131-140.hsd1.wa.comcast.net ([24.22.131.140]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 10 Jun 2011 22:54:54 +0200 Received: from hsitz by c-24-22-131-140.hsd1.wa.comcast.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 10 Jun 2011 22:54:54 +0200 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: emacs-orgmode@gnu.org Nick Dokos hp.com> writes: >That's a quoting problem (you are on Windoze, right?) The command line >on Windoze sucks raw eggs (well, not just the command line, but I'm biased . You are correct, sir! Thanks, it is indeed a quoting problem. > > On Linux, I used two kinds of quotes in order to protect the > vulnerable characters > inside each lisp sexp (you could also use backslashes strategically): > > emacs -batch --visit foo.org --eval '(setq org-confirm-babel-evaluate nil)'\ > --eval "(require 'ob-ditaa)"\ > --eval '(setq org-babel-temporary-directory "tmp")'\ > --eval '(setq org-ditaa-jar-path "/home/nick/elisp/org-mode/contrib/scripts/ditaa.jar")'\ > --funcall org-export-as-html > > Inconvenient, but it works. Okay, here's what seems to work on Windoze. Don't laugh: emacs -batch --visit foo.org ^ --eval ^"(setq org-confirm-babel-evaluate nil)^" ^ --eval ^"(require 'ob-ditaa)^" ^ --eval ^"(setq org-babel-temporary-directory \^"tmp\^")^" ^ --eval ^"(setq org-ditaa-jar-path \^"/home/nick/elisp/org-mode /contrib/scripts/ditaa.jar\^")^" ^ --funcall org-export-as-html There is actually some reason to the rhyme, which is explained here: http://blogs.msdn.com/b/twistylittlepassagesallalike/archive/2011/04/23/everyone-quotes-arguments-the-wrong-way.aspx Thanks again. -- Herb