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.
Watch the recorded webinar!
Pick up some tips and tricks with Context Variables
Learn how media organizations have achieved success with Data Integration
Practical steps to developing your data integration strategy.