emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* [babel] passing strings in
@ 2010-03-25 15:21 Maurizio Vitale
  2010-03-25 16:00 ` Eric Schulte
  2010-03-25 16:09 ` Dan Davison
  0 siblings, 2 replies; 10+ messages in thread
From: Maurizio Vitale @ 2010-03-25 15:21 UTC (permalink / raw)
  To: emacs-orgmode


In the table/block pair below, I'm trying to pass an IP number to some
shell code. It seems like in the table formula I can only have
numbers. Is that right?

#+TBLNAME: system-host-ping :var host=system-hosts
| name      |             ip | ping   |
|-----------+----------------+--------|
| host 1    | 192.168.10.200 | #ERROR |
| host 2    |  192.168.10.24 | #ERROR |
| host 3    |  192.168.42.24 | #ERROR |
#+TBLFM: $3='(sbe system-ping (ip $2))'

#+source: system-ping
#+begin_src sh 
# This is what I eventually want
#ping -w 10 -c 1 -q $ip >/dev/null 2>&1
#echo $?

# Testing
echo $ip
#+end_src

Any way to pass arbitrary strings?

Thanks a lot,

       Maurizio

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2010-03-25 19:48 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-03-25 15:21 [babel] passing strings in Maurizio Vitale
2010-03-25 16:00 ` Eric Schulte
2010-03-25 16:17   ` Maurizio Vitale
2010-03-25 17:12     ` Eric Schulte
2010-03-25 16:49   ` Dan Davison
2010-03-25 19:05     ` Thomas S. Dye
2010-03-25 19:23     ` Dan Davison
2010-03-25 19:48       ` Eric Schulte
2010-03-25 16:09 ` Dan Davison
2010-03-25 16:21   ` Maurizio Vitale

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).