Captute Exit code of a shell script using TSSH Component
Hi,
I am trying to get exit code of a shell script using SSH_EXIT_CODE variable of TSSH Component, but the component is giving exit code 0 if its able to trigger the script successfully but its not giving the exit code of script. Like, SSH_EXIT_CODE should give exit code other than 0 if there is some error in the script. I do not want to use SSH_STDOUT to get the output of the script because its used for other . Is there any way I can get exit code from inside the script??
you may habe to return code outsied of the console redirect it to global value the retreave it into ((String)globalMap.get("tSSH_1_STDOUT")) or ((Integer)globalMap.get("tSSH_1_EXIT_CODE"))