View Single Post
Old 08-28-2004, 12:16 PM  
biboun
Member
 
Join Date: Mar 2003
Posts: 87
Default Get Return Code C++ in TCL

I have an C++ code was return value for different error.

int main(int argc, char * argv[]) {

error 1 -> return 1 or exit(1);
error 2 -> return 2 or exit(2);
...
}

Question -> How can i get in TCL when I execute the exe file, the return value.

set status [catch {exec ..... } result ] return only if the fonction was successfull execute.

Any idea ? Thanks
biboun is offline