From: "Ishaan B." <lists / ruby-forum.com>
Subject: Re: Is it possible to run Tcl from Ruby?
Date: Tue, 12 Mar 2013 18:32:48 +0900
Message-ID: <05a930d2fcb845d239c35e2d5d92ed72 / ruby-forum.com>
> Thanks Carlo but I wanted to run Tcl scripts without the usage of Tk.
> Am planning to store and retreive Tcl data from Ruby database

Please use tcltklib and tkutil directly.
For example,
------------------------------------
require 'tcltklib'
require 'tkutil'

interp = TclTkIp.new(nil, nil)
ret = interp._eval("source hoge.tcl")
ret = interp._invoke("source", "hoge.tcl")
ret = interp._invoke('lsort', TkUtil._get_eval_string([3,1,2]))
p interp._split_tklist(ret)
------------------------------------
-- 
Hidetoshi NAGAI (nagai / ai.kyutech.ac.jp)
Department of Artificial Intelligence, Kyushu Institute of Technology