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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. MTsoul

    Use Tcl to get program exit code?

    Thank you for the help. I simply did "puts [catch {exec test #}]", which always gave 0. Unfortunately for me, Cygwin has a binary in /usr/bin/ called test. Even local directory "./test" didn't work, but absolute paths worked just fine. Thanks again!
  2. MTsoul

    Use Tcl to get program exit code?

    Hello, Simple C program, compiled: int main(int argc, char** argv) { return atoi(argv[1]); } The program returns the first parameter as its exit code. How can I launch this program in Tcl and retrieve that exit code? I tried: puts [catch {exec program 0}] but that always shows 0. Any...

Part and Inventory Search

Back
Top