emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Uwe Brauer <oub@mat.ucm.es>
To: emacs-orgmode@gnu.org
Subject: Re: orgmode and a database
Date: Tue, 05 Apr 2016 16:37:51 +0000	[thread overview]
Message-ID: <87zit8t3j4.fsf@mat.ucm.es> (raw)
In-Reply-To: 87r3ek8aj7.fsf@gnu.org

[-- Attachment #1: Type: text/plain, Size: 1468 bytes --]

>>> "Jose" == Jose E Marchesi <jemarch@gnu.org> writes:

   >> I have been using recutils with orgmode for more than year - still
   >> learning of course. So far, my experience has been fine. I am still
   >> developing some sort of standard databases, e.g. one for contacts,
   >> another for finance type of records, etc.
    
   >     Do you have some example or a pointer or so. I don't know even how to
   >     start.

   > AFAIK you can read data from a recfile and generate org-mode tables
   > dynamically in at least two ways:

   > 1) Using ob-rec.el (part of recutils)

   >    #+begin_src rec :data mydata.rec :type milestone :fields ProjectID,Name
   >      Year == 2014
   >    #+end_src

Thanks. Could you please send me the mydate file otherwise that will not
work (and I don't know enough recfiles syntax to cook up my own.

   > 2) Using babel and sh blocks (I found this example in [1])
   >    ):

   >    #+begin_src sh :exports results :results output replace :results value table
   >      recsel -t milestone -e "Year == 2014"  -p 'ProjectID,Name' milestones.rec | rec2csv
   >    #+end_src


That is odd, since I obtain an error which I attach: of  course I have
sh installed on my system

Which sh

/bin/sh





   > The recutils manual is available at the recutils webpage [2].

thanks

Uwe 

   > [1] https://www.reddit.com/r/emacs/comments/1u52eu/can_people_share_their_orgmode_workflows/
   > [2] http://www.gnu.org/software/recutils



[-- Attachment #2: rec-bug1.txt --]
[-- Type: text/plain, Size: 550 bytes --]

Debugger entered--Lisp error: (error "No org-babel-execute function for sh!")
  signal(error ("No org-babel-execute function for sh!"))
  error("No org-babel-execute function for %s!" "sh")
  org-babel-execute-src-block(nil)
  org-babel-execute-src-block-maybe()
  org-babel-execute-maybe()
  org-babel-execute-safely-maybe()
  run-hook-with-args-until-success(org-babel-execute-safely-maybe)
  org-ctrl-c-ctrl-c(nil)
  funcall-interactively(org-ctrl-c-ctrl-c nil)
  call-interactively(org-ctrl-c-ctrl-c nil nil)
  command-execute(org-ctrl-c-ctrl-c)

  reply	other threads:[~2016-04-05 16:38 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-04-04 19:46 orgmode and a database Uwe Brauer
2016-04-04 20:19 ` Ken Mankoff
2016-04-05 10:31   ` Uwe Brauer
2016-04-05 13:01     ` Russell Adams
2016-04-04 20:27 ` Charles Millar
2016-04-05 10:32   ` Uwe Brauer
2016-04-05 13:12     ` Jose E. Marchesi
2016-04-05 16:37       ` Uwe Brauer [this message]
2016-04-05 17:03         ` Jose E. Marchesi
2016-04-05 17:36           ` Uwe Brauer
2016-04-05 21:27           ` Uwe Brauer
2016-04-05 20:01     ` Charles Millar
2016-04-05 20:32   ` Charles Millar
2016-04-05 10:43 ` Colin Baxter
2016-04-05 11:41   ` Charles Millar
2016-04-05 13:04     ` Colin Baxter
2016-04-05 14:02       ` Charles Millar
2016-04-05 14:03       ` Eric S Fraga
2016-04-05 14:40         ` Jose E. Marchesi
2016-04-05 16:18           ` Eric S Fraga
2016-04-05 13:02   ` Jose E. Marchesi
2016-04-05 13:49     ` Colin Baxter
2016-04-05 13:49     ` Colin Baxter
2016-04-05 14:04       ` Jose E. Marchesi

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87zit8t3j4.fsf@mat.ucm.es \
    --to=oub@mat.ucm.es \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).