From mboxrd@z Thu Jan 1 00:00:00 1970 From: Maurizio Vitale Subject: [babel] passing strings in Date: Thu, 25 Mar 2010 11:21:41 -0400 Message-ID: <87eij8whoa.fsf@cuma.i-did-not-set--mail-host-address--so-tickle-me> Reply-To: maurizio.vitale@polymath-solutions.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NuoqH-00015A-Qu for emacs-orgmode@gnu.org; Thu, 25 Mar 2010 11:19:29 -0400 Received: from [140.186.70.92] (port=49124 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NuoqG-00014N-29 for emacs-orgmode@gnu.org; Thu, 25 Mar 2010 11:19:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NuoqE-0007yp-Qm for emacs-orgmode@gnu.org; Thu, 25 Mar 2010 11:19:27 -0400 Received: from lo.gmane.org ([80.91.229.12]:33650) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NuoqE-0007yg-Kt for emacs-orgmode@gnu.org; Thu, 25 Mar 2010 11:19:26 -0400 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1NuoqD-0004oL-8C for emacs-orgmode@gnu.org; Thu, 25 Mar 2010 16:19:25 +0100 Received: from pool-96-236-162-100.pitbpa.east.verizon.net ([96.236.162.100]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 25 Mar 2010 16:19:25 +0100 Received: from maurizio.vitale by pool-96-236-162-100.pitbpa.east.verizon.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 25 Mar 2010 16:19:25 +0100 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org 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