From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?utf-8?Q?S=C3=A9bastien_Vauban?= Subject: Re: [Babel] Handling of errors when using Ledger Date: Thu, 23 Dec 2010 16:52:43 +0100 Message-ID: <808vzga3lg.fsf@missioncriticalit.com> References: <877hhudxor.fsf@mundaneum.com> <87sk0inmys.fsf@stats.ox.ac.uk> <807hhnfaix.fsf@mundaneum.com> <87mxqiv7q3.wl%ucecesf@ucl.ac.uk> <871v68eb5k.fsf@pinto.chemeng.ucl.ac.uk> <87vd3kxq69.fsf@gmail.com> <87bp5ccl7t.fsf@pinto.chemeng.ucl.ac.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: 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-mXXj517/zsQ@public.gmane.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org To: emacs-orgmode-mXXj517/zsQ@public.gmane.org Hi Dan and Eric, Dan Davison wrote: > Eric S Fraga writes: >> Indeed, ledger cannot read from standard input. > > I've asked on the ledger list and the 3.0 (and perhaps some older) > versions of ledger do support -f - to read from stdin. Could you try > this version of the patch? Unluckily for me, ledger 2.6.1 (the latest precompiled binary, on http://www.assembla.com/spaces/Goldcoast/documents) does not work like that: #+begin_src sh Seb@MEDIACENTER:...ness/Accounting 0$ ledger --version Ledger 2.6.1, the command-line accounting tool Copyright (c) 2003-2008, John Wiegley. All rights reserved. This program is made available under the terms of the BSD Public License. See LICENSE file included with the distribution for details and disclaime= r. (modules: gmp, pcre, xml) Seb@MEDIACENTER:...ness/Accounting 0$ cat 00307599427-telechargement.dat = | ledger -f - bal Seb@MEDIACENTER:...ness/Accounting 0$ ledger -f 00307599427-telechargemen= t.dat bal -181.52 EUR Assets 181.52 EUR Expenses Seb@MEDIACENTER:...ness/Accounting 0$ #+end_src Everything is that easier under Ubuntu... Best regards, Seb --=20 S=C3=A9bastien Vauban _______________________________________________ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode-mXXj517/zsQ@public.gmane.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode