ChinaUnix.net
相关文章推荐:

tcl m200 驅動

怎么有perl,而没有tcl的啊,哪位高手搞个tcl论坛好不好

by xzyhope - 站务交流 - 2006-03-24 15:30:45 阅读(1546) 回复(7)

相关讨论

http://hi.baidu.com/xipf/blog/item/085f996228e3b4d8e6113a1d.html http://hi.baidu.com/lvgb/blog/item/1b983e2a1d64823e5243c16c.html http://linux.about.com/library/cmd/blcmdln_tcl.htm http://www.lslnet.com/linux/dosc1/45/linux-316340.htm 本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/27594/showart_1308200.html

by zhangyan215 - HP文档中心 - 2008-10-15 18:25:19 阅读(2300) 回复(0)

我在tcl脚本中想实现shell命令“cd”, 用exec cd $myDir 但exec会开一个新的进程,并在新的进程中执行cd,执行完后退出(我自己的解释,不知道对不对?),所以执行cd命令好像没有用。谁能帮忙解决一下?

by fightforever - Shell - 2003-08-08 16:36:51 阅读(4919) 回复(2)

非科班,有一些tcl 和C++经验,因为tcl目前可直接复用的代码不多,目前想在Python 和Ruby中选一个,不知道那位能说一下,Python/Ruby 那一个适合快速上手?我主要用其开发一些日常工作中带简单GUI的小工具,涉及网络,数据库,和一些文本的处理。 ps, 无意引发口水战......

by IEAK - Python - 2009-06-02 16:43:55 阅读(3738) 回复(8)

when I try run my test scripts in 40 mins, it reports a bug. [root@localhost scripts]# tclsh % time "./doutest.exp" I am Dou test finished -2147483648 microseconds per iteration and 2147483648=2^31 [root@localhost scripts]# tclsh -v % info patchlevel 8.5.1 % how to resolve it?

by marsbird - Shell - 2008-12-24 10:47:53 阅读(1344) 回复(4)

作为一种脚本语言,tcl具有简单的语法. cmd arg arg arg 一条tcl命令由空格分割的单词组成. 其中, 第一个单词是命令名称, 其余的是命令参数 . $foo $符号代表变量的值. 在本例中, 变量名称是foo. [clock seconds] 方括号执行了一个嵌套命令. 例如, 如果你想传递一个命令的结果作为另外一个命令的参数, 那么你使用这个符号 . 在本例中, 嵌套命令是以秒为单位的当前时间秒数 . "some stuff" 双引号把词组标记为命令的一个参数. "$"符...

by 刘健 - 网络技术文档中心 - 2008-10-16 17:29:20 阅读(1127) 回复(0)

1.变数和变数的替换 variable.tcl set name "able" puts "my name is $name" 执行方法:ns variable.tcl 执行结果: my name is able set month 8 set day 13 set year 2008 set date "$month:$day:$year" puts $date 执行结果: 8:13:2008 set foo "puts hello!" eval $foo 执行结果:hello! 2.表达式 set value [expr 10+50] puts $value 执行结果60 3.流程控制 set my_planet "earth" if {$my_planet == "earth"} { puts "I...

by hb_li_520 - 网络技术文档中心 - 2008-08-12 17:30:51 阅读(1240) 回复(0)

..... write -output dump.v set var 2008 sh sed '/1982/,/$var/ s/xxxx/xx/g' dump.v -i ...... 大概就是上边的意思, 当然 "$var/" 这里肯定是不对的. 由于tcl不支持区间匹配, 所以想用sed来作一部分工作, 请问如何调用tcl中的var变量.

by dreamone503 - Shell - 2008-07-28 16:59:18 阅读(1648) 回复(6)