Bill <[email protected]> writes: > I'm running ledger 2.6.2 and org-mode 7.01.g on Debian Squeeze, and I'd > like to use org-babel to integrate the two. All the examples I've found > show the actual ledger contained in the org-mode file itself, but I'd like > to connect to an existing ledger file. What is the magic incantation, > assuming there is one? Where do I find that documentation? > > Thanks, > > Bill
You could do as others have suggested, i.e. using the shell to invoke ledger. However, you can also use ledger directly (via the !include directive) to read in ledger entries from an external file, as in: : #+begin_src ledger :cmdline bal :results value : !include /some-path/account.ledger : #+end_src HTH, eric -- : Eric S Fraga, GnuPG: 0xC89193D8FFFCF67D : in Emacs 24.3.50.1 and Org release_7.9.3d-837-ge37613 --
