winCE-不断进步

导航

2010年11月10日

【TCL编程】关于file操作的cmd集合

摘要: TCL中一组用于文件处理的命令。file subcommand name arg ...file atime name返回文件的最近存取时间。file dirname name返回name所描述的文件名的目录部分。eg:source [file dirname $argv0]/vxTestCommon.tclfile executable name返回文件是否可被执行。file exists na... 阅读全文

posted @ 2010-11-10 15:54 杰奎琳的小猫咪 阅读(3899) 评论(0) 推荐(0)

tcl 脚本起头的一行 exec tclsh "$0" "$@"的意思

摘要: 最近再看很多测试自动花脚本,都是TCL语言编写。 起头一行是 #!/usr/bin/bash #\ exec tclsh "$0" "$@"这个在shell看来,优先skip掉了注释#开头的东东,对他来说相当于 一个注释行 和一个命令行 exec tclsh "$0" "$@“ exec tclsh "$0" "$@“命令被执行 tclsh解释器被exec来解释$0 t... 阅读全文

posted @ 2010-11-10 14:13 杰奎琳的小猫咪 阅读(2910) 评论(0) 推荐(0)