<?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 Captute Exit code of a shell script using TSSH Component in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Captute-Exit-code-of-a-shell-script-using-TSSH-Component/m-p/2350941#M117696</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;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??&lt;/P&gt;</description>
    <pubDate>Tue, 04 Jun 2019 10:34:41 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2019-06-04T10:34:41Z</dc:date>
    <item>
      <title>Captute Exit code of a shell script using TSSH Component</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Captute-Exit-code-of-a-shell-script-using-TSSH-Component/m-p/2350941#M117696</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;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??&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jun 2019 10:34:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Captute-Exit-code-of-a-shell-script-using-TSSH-Component/m-p/2350941#M117696</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-06-04T10:34:41Z</dc:date>
    </item>
    <item>
      <title>Re: Captute Exit code of a shell script using TSSH Component</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Captute-Exit-code-of-a-shell-script-using-TSSH-Component/m-p/2350942#M117697</link>
      <description>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"))&lt;BR /&gt;or ((Integer)globalMap.get("tSSH_1_EXIT_CODE"))</description>
      <pubDate>Thu, 06 Jun 2019 14:21:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Captute-Exit-code-of-a-shell-script-using-TSSH-Component/m-p/2350942#M117697</guid>
      <dc:creator>fdenis</dc:creator>
      <dc:date>2019-06-06T14:21:24Z</dc:date>
    </item>
  </channel>
</rss>

