Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by hce

  1. hce

    TCL exec error on proc

    Thank you very much mikrom, it indeed works. Cheers.
  2. hce

    TCL exec error on proc

    Actually it is a problem to use variable for a command. The question is really how to set a variable for shell commands. For example, the following will always generate an error: set myshellcommand "cmake --version" if {[catch {exec $myshellcommand}] result} { return TCL_ERROR }
  3. hce

    TCL exec error on proc

    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...

Part and Inventory Search

Back
Top