
TCL脚本技术
文章平均质量分 61
newyf_cun
do what you want
展开
-
tcl调用tuxedo实现tpcall
1. 源码#include #include #include #include #include #include #include #include #include #include extern "C" {int Tuxedotcl_Init(Tcl_Interp *Interp);}/**********************************原创 2012-09-14 15:17:43 · 2343 阅读 · 0 评论 -
Python调用Tcl代码
python中调用tcl是通过加载TkInter来实现的。D:\tcltest>pythonActivePython 2.7.2.5 (ActiveState SoftwPython 2.7.2 (default, Jun 24 2011, 12:Type "help", "copyright", "credits" or>>> from Tkinter import Tcl>>>原创 2012-09-21 15:49:02 · 7026 阅读 · 0 评论 -
Tcl实现Http服务操作
1. 依赖包文件 http.tcl 已经默认安装在tcl的core中,可以使用package require http加载tcl的http模块。 2. 使用方式 #!/bin/sh#command \exec tclsh "$0" "$@"#URl配置set TEST_URL "http://127.0.0.1:8888/cgi-bin/test_cgi原创 2012-09-24 14:18:21 · 2548 阅读 · 0 评论 -
Tcl在Unix/Linux环境下多线程支持环境搭建
一、 下载源码 tcl8.5 http://tcl.tk/software/tcltk/8.5.html tclThread2.6 http://core.tcl.tk/thread/info/2e574064a4二、安装tcl8.5 tar -xvf tcl8.5.9-src.tar.gzcd tcl8.5.9cd unix./config原创 2012-09-24 13:00:59 · 3165 阅读 · 0 评论 -
运行脚本CGI
1. python执行cgi功能#!/home/python/tools/python2.7.2/bin/pythonprint "Content-type: text/html\n"print "This python test page" 2. tcl执行cgi#!/bin/sh#\. run_cgi_env#\exec tclsh "$0" "$@"puts原创 2012-10-17 14:28:55 · 457 阅读 · 0 评论