From mboxrd@z Thu Jan 1 00:00:00 1970 From: Roger Mason Subject: Table formula from code block Date: Sun, 22 Jan 2017 08:57:53 -0330 Message-ID: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:48528) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cVHFY-00071k-Bo for emacs-orgmode@gnu.org; Sun, 22 Jan 2017 07:28:01 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cVHFV-0005Nk-7v for emacs-orgmode@gnu.org; Sun, 22 Jan 2017 07:28:00 -0500 Received: from simone.ucs.mun.ca ([134.153.232.76]:54795) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cVHFV-0005NB-0U for emacs-orgmode@gnu.org; Sun, 22 Jan 2017 07:27:57 -0500 Received: from pyrope.local.esd.mun.ca (CPE00fc8db7a323-CM00fc8db7a320.cpe.net.cable.rogers.com [99.249.98.173]) (authenticated bits=0) by simone.ucs.mun.ca (8.13.8/8.13.8) with ESMTP id v0MCRrhf012269 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NO) for ; Sun, 22 Jan 2017 08:57:54 -0330 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" To: emacs-orgmode@gnu.org Hello, I have these code blocks: ================================================================================ #+BEGIN_SRC sh :tangle "skribilo_to_engine.sh" #!/usr/local/bin/bash infile=$3 engine=$2 skribilo=$1/skribilo rm -rf $engine; mkdir -p $engine result="Failed" $skribilo -t $engine -o $engine/$infile.$engine $infile.skb [ "$(ls -A $engine)" ] && result="Success" if [ -e "setup.tex" ] then mv setup.tex $engine/ fi echo "$result" #+END_SRC #+BEGIN_SRC sh :results none chmod u+x skribilo_to_engine.sh #+END_SRC #+NAME: skribilo_to_engine #+BEGIN_SRC sh :results output replace :var path="/opt/skribilo-git/bin" :var engine="" :var infile="Author_7960" ./skribilo_to_engine.sh $path $engine $infile #+END_SRC =============================================================================== I tangle the code block and make it executable. I think it should be possible to run the code blocks from the table, but it errors out: #+tblname: summaries | engine | To Engine | |---------+-----------| | context | #ERROR | #+TBLFM: $2='(org-sbe "skribilo_to_engine" (engine $1) ) (See http://orgmode.org/worg/org-contrib/babel/intro.html#arguments-to-source-code-blocks). What am I doing wrong? Thanks, Roger GNU Emacs 25.1.1 (i386-portbld-freebsd10.1, GTK+ Version 2.24.29) of 2016-11-04 Org mode version 9.0.3 (release_9.0.3-170-gfed1cf)