0
上下文Exec中的命令行二进制文件:Windows 7中的ActiveState Tcl的8.6.1不明白为什么我不能在tclsh的
% info tclversion
8.6
% info patchlevel
8.6.1
我有一个名为SETCFG.EXE一个C#控制台模式的应用程序。它位于C:\ BIN中的路径上。
% set project corp
corp
% set method Recent
Recent
% exec -- [list c:/bin/setcfg.exe bobat.cfg inserter.${project}.Method $method]
couldn't execute "c:\bin\setcfg.exe bobat.cfg inserter.corp.Method Recent": no such file or directory
现在它可以说,我不是正确,指定TCL代码 - 它已经从上次的遭遇多年 - 所以我会尽力execing字符串
% exec -- "c:/bin/setcfg.exe bobat.cfg inserter.${project}.Method $method"
couldn't execute "c:\bin\setcfg.exe bobat.cfg inserter.corp.Method Recent": no such file or directory
嗯...也许我需要把程序第一和参数第二...
% exec -- "c:/bin/setcfg.exe" "bobat.cfg inserter.${project}.Method $method"
Syntax:
c:\bin\setcfg.exe cfg sym val
child process exited abnormally
参数列表?
% exec -- "c:/bin/setcfg.exe" [list bobat.cfg inserter.${project}.Method $method]
Syntax:
c:\bin\setcfg.exe cfg sym val
child process exited abnormally
那么我没有做对吗?我尝试了一些可能性。还有更多吗?