TCL error “Child process exited abnormally”
my_file.tcl set … puts “HELLO_1” puts [my_pkg::whoami] puts “HELLO_2” my_pkg.tcl namespace eval :: my_pkg{ namespace export whoami …. proc :: my_pkg::whoami{} { set::my_pkg::RUN_1 ….. …. When executed the above, I am getting this error “Child process exited abnormally” How to fix this, can you please suggest workaround for this? “whoami” is not a tcl keyword, […]
Most simple lmap, how to return a value
Do I really need to workaround with a “useless” function? Or is there is simpler way?
namespace map : Keep the main namespace
Related to this question, in a comment he advised me to use -map
instead of -command
.
I’m trying to apply it but I’ve encountered a problem: I want to keep my main
namespace ns1
like this :
How to execute a program with all output redirected to a file and then read the file and display it
I need to execute un program in TCL, this program is quite long to execute and during its execution I need to display the log generated by the program. Unfortunately for an unknown reason, this program can’t have their outputs captured by TCL using the classic way (fileevent, etc.) : A specific program can’t have their output being captured by TCL on windows whereas the linux version is working great
In TCL, how to execute a program with all output redirected to a file and then read the file and display it
I need to execute un program in TCL, this program is quite long to execute and during its execution I need to display the log generated by the program. Unfortunately for an unknown reason, this program can’t have their outputs captured by TCL using the classic way (fileevent, etc.) : A specific program can’t have their output being captured by TCL on windows whereas the linux version is working great
namespace inside another namespace or 2 distinct namespaces : the result is the same
I don’t see the difference between the 2 scripts.
why we cannot define dict as Argument defination in tcl?
I have a proc which takes two dicts as required arguments