Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要类似的东西:
$ tclsh --run-command puts hello
打印出来:hello。
hello
就像-c在bash.
-c
bash
最简单的就是创建一个TCL脚本:runner.tcl内容如下:
runner.tcl
#runner.tcl eval $argv
采用:
$ tclsh runner.tcl puts hello