<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Catch the return code from Talend in shell script in unix in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Catch-the-return-code-from-Talend-in-shell-script-in-unix/m-p/2367587#M130952</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have developed Talend job in Windows Talend .I am able to run job properly as per logic .&lt;/P&gt;&lt;P&gt;Also I have used tlogcatcher to record errors and I am able to get records in stats table using project setting option.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now, I have to run the job on&amp;nbsp;Linux machine.&lt;/P&gt;&lt;P&gt;But, When i build the job and try to run that using shell script&lt;STRONG&gt; I am getting job status as completed (using echo $?) &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;even if there are error (or exist status of job is 1). Also I am &lt;STRONG&gt;not getting error&lt;/STRONG&gt; records in stats table.&lt;/P&gt;&lt;P&gt;Kindly suggest me the way to get exit status of&amp;nbsp;&lt;SPAN&gt;Talend job in unix script and also how to get records in stats table using&amp;nbsp;shell script&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;any example, will be highly helpful.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 06 Jun 2018 06:25:06 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-06-06T06:25:06Z</dc:date>
    <item>
      <title>Catch the return code from Talend in shell script in unix</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Catch-the-return-code-from-Talend-in-shell-script-in-unix/m-p/2367587#M130952</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have developed Talend job in Windows Talend .I am able to run job properly as per logic .&lt;/P&gt;&lt;P&gt;Also I have used tlogcatcher to record errors and I am able to get records in stats table using project setting option.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now, I have to run the job on&amp;nbsp;Linux machine.&lt;/P&gt;&lt;P&gt;But, When i build the job and try to run that using shell script&lt;STRONG&gt; I am getting job status as completed (using echo $?) &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;even if there are error (or exist status of job is 1). Also I am &lt;STRONG&gt;not getting error&lt;/STRONG&gt; records in stats table.&lt;/P&gt;&lt;P&gt;Kindly suggest me the way to get exit status of&amp;nbsp;&lt;SPAN&gt;Talend job in unix script and also how to get records in stats table using&amp;nbsp;shell script&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;any example, will be highly helpful.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jun 2018 06:25:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Catch-the-return-code-from-Talend-in-shell-script-in-unix/m-p/2367587#M130952</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-06-06T06:25:06Z</dc:date>
    </item>
    <item>
      <title>Re: Catch the return code from Talend in shell script in unix</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Catch-the-return-code-from-Talend-in-shell-script-in-unix/m-p/2367588#M130953</link>
      <description>&lt;P&gt;If you want to exit from your job with a return code different of 0 (the default), you need to use System.exit method:&lt;/P&gt;&lt;PRE&gt;System.exit((Integer)globalMap.get("returnCode"));&lt;/PRE&gt;&lt;P&gt;In this&amp;nbsp;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.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jun 2018 08:44:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Catch-the-return-code-from-Talend-in-shell-script-in-unix/m-p/2367588#M130953</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2018-06-06T08:44:41Z</dc:date>
    </item>
  </channel>
</rss>

