Catch the return code and exception from talend in shell script

One Star

Catch the return code and exception from talend in shell script

Hi,
I execute the talend shell script from a wrapper shell script.
After the talend shell script (job) is executed, how to check the return code from talend in the shell script and if the return code is > 0, then catch the java exception.
any example, will be highly helpful.
Thanks
Community Manager

Re: Catch the return code and exception from talend in shell script

Hi
It is impossible to get the return code of job execution from wrapper shell, you should manage the log in the job, to do:
add a tLogCatcher to capture the Java exception once the job throws an error, it also has a column called code populates the return error of job execution.
Please read the component documentation and learn this component, let me know if you have any troubles.
----------------------------------------------------------
Talend | Data Agility for Modern Business
Seven Stars

Re: Catch the return code and exception from talend in shell script

See http://www.talendforge.org/forum/viewtopic.php?id=16111 but you can't get the exception details.