From mboxrd@z Thu Jan 1 00:00:00 1970 From: Henri-Paul Indiogine Subject: Re: Using Code Blocks in Org Tables Date: Fri, 26 Aug 2011 14:35:30 -0700 Message-ID: References: <87sjoonrt1.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([140.186.70.92]:48549) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qx44C-0006GB-Gr for emacs-orgmode@gnu.org; Fri, 26 Aug 2011 17:36:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qx448-0003uf-1H for emacs-orgmode@gnu.org; Fri, 26 Aug 2011 17:35:56 -0400 Received: from mail-bw0-f41.google.com ([209.85.214.41]:35604) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qx447-0003ua-RF for emacs-orgmode@gnu.org; Fri, 26 Aug 2011 17:35:52 -0400 Received: by bkbzt4 with SMTP id zt4so3276792bkb.0 for ; Fri, 26 Aug 2011 14:35:50 -0700 (PDT) In-Reply-To: <87sjoonrt1.fsf@gmail.com> 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: Eric Schulte Cc: emacs-org Hi Eric! 2011/8/26 Eric Schulte : > sh code blocks are different in that they don't really have a ":results > value" option in the same way as most code blocks. =A0Two options would b= e > to either > 1. remove the "echo $HOME" line from your code blocks, or > 2. change the '(sbe "test-sh") formula to '(second (second (sbe "test-sh"= ))) I was going by: http://orgmode.org/worg/org-contrib/babel/intro.html#result= s Capturing the results of code evaluation. The 'result' of code evaluation is the value of the last statement in the code block. .... I have a long bash script that outputs a lot of information to a log file. But I would like one piece of information to end up in a cell of an org-mode table. I can place this value as the last one in the bash script. How could I make that work? Thanks, Henri-Paul --=20 Henri-Paul Indiogine Curriculum & Instruction Texas A&M University TutorFind Learning Centre Email: hindiogine@gmail.com Skype: hindiogine Website: http://people.cehd.tamu.edu/~sindiogine