<?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: Debug tSystem using &amp;quot;cmd&amp;quot; in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Debug-tSystem-using-quot-cmd-quot/m-p/2273648#M50571</link>
    <description>Redirect output to a file or to an environment variable.
&lt;BR /&gt;"cmd /c dir *.* &amp;gt; allfiles.txt"
&lt;BR /&gt;
&lt;BR /&gt;You need to distinct between "two" levels of error...
&lt;BR /&gt;1 : like you pass within tSystem and an unknown command.
&lt;BR /&gt;example :
&lt;BR /&gt;"woop /K dir *.*"
&lt;BR /&gt;Cannot run program "woop": CreateProcess error=2, The system cannot find the file specified
&lt;BR /&gt;
&lt;BR /&gt;2: a false cmd which your cmd environment o.s. shell is not able to run:
&lt;BR /&gt;"cmd /K dirme *.*"
&lt;BR /&gt;'dirme' is not recognized as an internal or external command, operable program or batch file.
&lt;BR /&gt;
&lt;BR /&gt;You probably want the error in example 2? however an exit code isn't always used by programs or batch scripts so I suggest redirecting out put to logfile or to an environment variable.
&lt;BR /&gt;
&lt;BR /&gt;Take a look at this:
&lt;BR /&gt;
&lt;A href="https://support.microsoft.com/en-us/help/110930/redirecting-error-messages-from-command-prompt-stderr-stdout" target="_blank" rel="nofollow noopener noreferrer"&gt;https://support.microsoft.com/en-us/help/110930/redirecting-error-messages-from-command-prompt-stderr-stdout&lt;/A&gt;
&lt;BR /&gt;
&lt;BR /&gt;</description>
    <pubDate>Mon, 10 Sep 2018 18:41:10 GMT</pubDate>
    <dc:creator>Jesperrekuh</dc:creator>
    <dc:date>2018-09-10T18:41:10Z</dc:date>
    <item>
      <title>Debug tSystem using "cmd"</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Debug-tSystem-using-quot-cmd-quot/m-p/2273647#M50570</link>
      <description>&lt;P&gt;I'm trying to debug a tSystem component, one which begins with "cmd. Is there a way to access the output from this? Non-echo system calls (e.g., echo hello) do print to console, but adding "cmd" takes this behavior away. For instance, if you pass tSystem the string "cmd aadsfa", the component runs normally without any (error) output.&lt;/P&gt;</description>
      <pubDate>Mon, 10 Sep 2018 17:48:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Debug-tSystem-using-quot-cmd-quot/m-p/2273647#M50570</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-09-10T17:48:42Z</dc:date>
    </item>
    <item>
      <title>Re: Debug tSystem using "cmd"</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Debug-tSystem-using-quot-cmd-quot/m-p/2273648#M50571</link>
      <description>Redirect output to a file or to an environment variable.
&lt;BR /&gt;"cmd /c dir *.* &amp;gt; allfiles.txt"
&lt;BR /&gt;
&lt;BR /&gt;You need to distinct between "two" levels of error...
&lt;BR /&gt;1 : like you pass within tSystem and an unknown command.
&lt;BR /&gt;example :
&lt;BR /&gt;"woop /K dir *.*"
&lt;BR /&gt;Cannot run program "woop": CreateProcess error=2, The system cannot find the file specified
&lt;BR /&gt;
&lt;BR /&gt;2: a false cmd which your cmd environment o.s. shell is not able to run:
&lt;BR /&gt;"cmd /K dirme *.*"
&lt;BR /&gt;'dirme' is not recognized as an internal or external command, operable program or batch file.
&lt;BR /&gt;
&lt;BR /&gt;You probably want the error in example 2? however an exit code isn't always used by programs or batch scripts so I suggest redirecting out put to logfile or to an environment variable.
&lt;BR /&gt;
&lt;BR /&gt;Take a look at this:
&lt;BR /&gt;
&lt;A href="https://support.microsoft.com/en-us/help/110930/redirecting-error-messages-from-command-prompt-stderr-stdout" target="_blank" rel="nofollow noopener noreferrer"&gt;https://support.microsoft.com/en-us/help/110930/redirecting-error-messages-from-command-prompt-stderr-stdout&lt;/A&gt;
&lt;BR /&gt;
&lt;BR /&gt;</description>
      <pubDate>Mon, 10 Sep 2018 18:41:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Debug-tSystem-using-quot-cmd-quot/m-p/2273648#M50571</guid>
      <dc:creator>Jesperrekuh</dc:creator>
      <dc:date>2018-09-10T18:41:10Z</dc:date>
    </item>
  </channel>
</rss>

