I have developed Talend job in Windows Talend .I am able to run job properly as per logic .
Also I have used tlogcatcher to record errors and I am able to get records in stats table using project setting option.
Now, I have to run the job on Linux machine.
But, When i build the job and try to run that using shell script I am getting job status as completed (using echo $?)
even if there are error (or exist status of job is 1). Also I am not getting error records in stats table.
Kindly suggest me the way to get exit status of Talend job in unix script and also how to get records in stats table using shell script
any example, will be highly helpful.
If you want to exit from your job with a return code different of 0 (the default), you need to use System.exit method:
In this example, the global variable "returnCode" has been set somewhere in the job and in case of tDie or Java exception, the tLogCatcher subjob will call System.exit to exit with the specified return code.
Talend named a Leader.
Kickstart your first data integration and ETL projects.
Part 2 of a series on Context Variables
Learn how to do cool things with Context Variables
Find out how to migrate from one database to another using the Dynamic schema