From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alan Schmitt Subject: Re: eval header arguments for ledger :cmdline? Date: Thu, 08 Jan 2015 12:32:37 +0100 Message-ID: References: <87wq4xsguo.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:55387) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y9BKa-0005Gv-4F for emacs-orgmode@gnu.org; Thu, 08 Jan 2015 06:32:53 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Y9BKW-0006Nm-Vx for emacs-orgmode@gnu.org; Thu, 08 Jan 2015 06:32:48 -0500 Received: from mx1.polytechnique.org ([129.104.30.34]:52533) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y9BKW-0006NV-P2 for emacs-orgmode@gnu.org; Thu, 08 Jan 2015 06:32:44 -0500 In-Reply-To: <87wq4xsguo.fsf@gmail.com> (Myles English's message of "Thu, 08 Jan 2015 10:17:59 +0000") 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: Myles English Cc: Org-mode --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 2015-01-08 10:17, Myles English writes: > Hello, > > Can anybody tell me how this could be achieved, please? > > I would like to use parameters for ledger[1] source code blocks, and > understand that the :cmdline header argument means "pass this straight > through to the command line", but effectively what I would like to do is > this: > > #+PROPERTY: header-args :var ACC_PERIOD=3D"-b 2013-04-06 -e 2014-04-06" B= AT_FILE=3D"myledger.bat" > > #+begin_src ledger :cmdline bal ACC_PERIOD -f BAT_FILE > > #+end_src > > Is something like this currently possible or does it need further > development of ob-ledger.el? Any volunteers||collaborators? I did not know about ob-ledger =E2=80=A6 What I do is use `shell-command-to-string' as shown here http://alan.petitepomme.net/tips/ledger_and_org.html Best, Alan =2D-=20 OpenPGP Key ID : 040D0A3B4ED2E5C7 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.22 (Darwin) iQEcBAEBCgAGBQJUrmraAAoJEAQNCjtO0uXHzBEH/ioUgeUmfXMkk7TSJhadLrpy NVkKLcaIWvpA/QaF9fEIrlqA+BxgmPQNUraNgA0D0xrhmXa+50dgE6aLQJqftsiB weCUHriO7/9pM/LJQbwEfHb2KnEoeb3FYHy6ACM1aHt70SALnqtS5IYdqePfkEf2 F8Zmth/A+ZICe4Qf1e2IGfD7KeCeTseGGkCjVnt+ktz9Sj3Pj/GdtbAwIFMEvMxt BxUWlZ1iFPJIBNoZiHwvHbeAmO/ncNBS+y77wAd6vXPJ5hZrqFhzfbuqn7EC7RMD B52LGT3d7vE/l1mxssnj/eAfwFaDX0+RoaUlckKxPslzUua5T7tdtBw943kh9e8= =i/Ea -----END PGP SIGNATURE----- --=-=-=--