<?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 Re: How do I get the output from a .bat using tSystem? in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/How-do-I-get-the-output-from-a-bat-using-tSystem/m-p/2237213#M25713</link>
    <description>Not necessary. In the example I give, I used a command file, just removed the exit, the rest is copy/paste from your script.
&lt;BR /&gt;</description>
    <pubDate>Fri, 28 Apr 2017 07:00:09 GMT</pubDate>
    <dc:creator>TRF</dc:creator>
    <dc:date>2017-04-28T07:00:09Z</dc:date>
    <item>
      <title>How do I get the output from a .bat using tSystem?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-do-I-get-the-output-from-a-bat-using-tSystem/m-p/2237210#M25710</link>
      <description>&lt;P&gt;I have a simple &lt;STRONG&gt;.bat&lt;/STRONG&gt; job which prints the date time&lt;/P&gt;&lt;P&gt;@echo off echo %date:~10,4%-%date:~4,2%-%date:~7,2% %time:~0,2%:%time:~3,2%:%time:~6,2% exit;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I call the .bat job with &lt;STRONG&gt;tSystem&lt;/STRONG&gt; component:&lt;/P&gt;&lt;P&gt;command "cmd /c start D:\\myDate.bat"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How do I write the returned date time to a file?&lt;/P&gt;&lt;P&gt;I tried all the Standard Output choices but every time a &lt;STRONG&gt;blank line&lt;/STRONG&gt; is written to my output file.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Apr 2017 21:45:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-do-I-get-the-output-from-a-bat-using-tSystem/m-p/2237210#M25710</guid>
      <dc:creator>talendtester</dc:creator>
      <dc:date>2017-04-27T21:45:36Z</dc:date>
    </item>
    <item>
      <title>Re: How do I get the output from a .bat using tSystem?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-do-I-get-the-output-from-a-bat-using-tSystem/m-p/2237211#M25711</link>
      <description>&lt;P&gt;In tSystem set "Standard Output" to "to Global variable".&lt;/P&gt; 
&lt;P&gt;Now the result is available from&amp;nbsp;&lt;SPAN&gt;tSystem_2_OUTPUT (in tSystem name is tSystem_2).&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;You can easily put the result into a file using a tFixedInputFlow connected to a tFileOutputDelimited (for example).&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;Here is the&amp;nbsp;tFixedInputFlow:&lt;/SPAN&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009Lty1.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/147024i81B584EB3E72ECAE/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009Lty1.png" alt="0683p000009Lty1.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;Enjoy!&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Apr 2017 22:20:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-do-I-get-the-output-from-a-bat-using-tSystem/m-p/2237211#M25711</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2017-04-27T22:20:46Z</dc:date>
    </item>
    <item>
      <title>Re: How do I get the output from a .bat using tSystem?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-do-I-get-the-output-from-a-bat-using-tSystem/m-p/2237212#M25712</link>
      <description>&lt;P&gt;Starting a .bat in the Command of tSystem I wasn't able to get it to pass back the output of the .bat.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My job looks like: &lt;STRONG&gt;tSystem_1 onSubjobOk&lt;/STRONG&gt;&amp;nbsp; &lt;STRONG&gt;tFixedFlowInput_1&lt;/STRONG&gt;&amp;gt;&lt;STRONG&gt;tFileOutputDelimited_1&lt;/STRONG&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Apparently the echo date time&amp;nbsp;command must be in the Command of tSystem.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Apr 2017 23:48:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-do-I-get-the-output-from-a-bat-using-tSystem/m-p/2237212#M25712</guid>
      <dc:creator>talendtester</dc:creator>
      <dc:date>2017-04-27T23:48:28Z</dc:date>
    </item>
    <item>
      <title>Re: How do I get the output from a .bat using tSystem?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-do-I-get-the-output-from-a-bat-using-tSystem/m-p/2237213#M25713</link>
      <description>Not necessary. In the example I give, I used a command file, just removed the exit, the rest is copy/paste from your script.
&lt;BR /&gt;</description>
      <pubDate>Fri, 28 Apr 2017 07:00:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-do-I-get-the-output-from-a-bat-using-tSystem/m-p/2237213#M25713</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2017-04-28T07:00:09Z</dc:date>
    </item>
    <item>
      <title>Re: How do I get the output from a .bat using tSystem?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-do-I-get-the-output-from-a-bat-using-tSystem/m-p/2237214#M25714</link>
      <description>&lt;P&gt;Just to be sure, here is a capture of my tSystem component:&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 400px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009Lty6.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/130223i916F481A1E38819C/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009Lty6.png" alt="0683p000009Lty6.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Apr 2017 08:49:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-do-I-get-the-output-from-a-bat-using-tSystem/m-p/2237214#M25714</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2017-04-28T08:49:44Z</dc:date>
    </item>
  </channel>
</rss>

