From mboxrd@z Thu Jan 1 00:00:00 1970 From: Xi Shen Subject: Is it possible to pass variable to variables of src block? Date: Tue, 05 Dec 2017 05:19:28 +0000 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="94eb2c0d9a4a400ee7055f90fbb4" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:54340) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eM5dt-0006es-SF for Emacs-orgmode@gnu.org; Tue, 05 Dec 2017 00:19:42 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eM5ds-0002Qx-TX for Emacs-orgmode@gnu.org; Tue, 05 Dec 2017 00:19:41 -0500 Received: from mail-lf0-x235.google.com ([2a00:1450:4010:c07::235]:37824) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eM5ds-0002QN-J5 for Emacs-orgmode@gnu.org; Tue, 05 Dec 2017 00:19:40 -0500 Received: by mail-lf0-x235.google.com with SMTP id a12so21806872lfe.4 for ; Mon, 04 Dec 2017 21:19:40 -0800 (PST) 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" --94eb2c0d9a4a400ee7055f90fbb4 Content-Type: text/plain; charset="UTF-8" Hi, http://orgmode.org/manual/var.html This wiki explains how to use variable inside a src block. But I wonder if it is possible to specify variable to the variables in the src definition. E.g. for the sql src block, I want to execute a script on different server. I want to define a variable for the ":dbhost" variable. Regards, David --94eb2c0d9a4a400ee7055f90fbb4 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi,


=
This wiki explains how to use variable inside a src block. But I wonde= r if it is possible to specify variable to the variables in the src definit= ion.

E.g. for the sql src block, I want to execute= a script on different server. I want to define a variable for the ":d= bhost" variable.


Regards,
David

--94eb2c0d9a4a400ee7055f90fbb4--