[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[O] Table formula from code block
From: |
Roger Mason |
Subject: |
[O] Table formula from code block |
Date: |
Sun, 22 Jan 2017 08:57:53 -0330 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.1 (berkeley-unix) |
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)
- [O] Table formula from code block,
Roger Mason <=
- Re: [O] Table formula from code block, Michael Welle, 2017/01/23
- Message not available
- Re: [O] Table formula from code block, Eric S Fraga, 2017/01/24
- Re: [O] Table formula from code block, Michael Welle, 2017/01/24
- Message not available
- Re: [O] Table formula from code block, Eric S Fraga, 2017/01/24
- Re: [O] Table formula from code block, Michael Welle, 2017/01/24
- Re: [O] Table formula from code block, Michael Welle, 2017/01/24
- Message not available
- Re: [O] Table formula from code block, Eric S Fraga, 2017/01/24