![]() |
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 |
set status [exec - blahblah...] will set the return code tho.
|
catch {set status [exec ....]} status
should also return any errors or your return code to $status |
ok
Tks for your answers. It works fine.
|
All times are GMT -5. The time now is 02:31 AM. |
Powered by vBulletin® Version 3.8.11 Alpha 3
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
Parts of this site powered by vBulletin Mods & Addons from DragonByte Technologies Ltd. (Details)