Hi,
I can run [catch {exec cmake --version} result] without problems, but I cannot run it from following function in a tcl script:
proc RunCommand {myCommand} {
if {[catch {exec $myCommand} result]} {
puts stderr $result
return TCL_ERROR
}
}
RunCommand {cmake --version}
couldn't execute "cmake --version": no such file or directory
what I am missing here? Appreciate helps.
Thank you.
Kind regards
I can run [catch {exec cmake --version} result] without problems, but I cannot run it from following function in a tcl script:
proc RunCommand {myCommand} {
if {[catch {exec $myCommand} result]} {
puts stderr $result
return TCL_ERROR
}
}
RunCommand {cmake --version}
couldn't execute "cmake --version": no such file or directory
what I am missing here? Appreciate helps.
Thank you.
Kind regards