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 bkrike 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: *

  • Users: MTsoul
  • Content: Threads
  • Order by date
  1. 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