FlashFXP Forums

FlashFXP Forums (https://oss.azurewebsites.net/forum/)
-   Programming (https://oss.azurewebsites.net/forum/community-chatter/programming/)
-   -   Get Return Code C++ in TCL (https://oss.azurewebsites.net/forum/community-chatter/programming/8960-get-return-code-c-tcl.html)

biboun 08-28-2004 12:16 PM

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

FTPServerTools 08-30-2004 03:21 AM

set status [exec - blahblah...] will set the return code tho.

tuff 08-30-2004 04:45 AM

catch {set status [exec ....]} status

should also return any errors or your return code to $status

biboun 09-01-2004 04:23 PM

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)