<?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 Run .bat file from tSystem which launch another powershell script doesn't work from TMC in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Run-bat-file-from-tSystem-which-launch-another-powershell-script/m-p/2479820#M141235</link>
    <description>&lt;P&gt;Hi there,&lt;/P&gt;
&lt;P&gt;I'm trying to run a .bat file from tSystem component which launch another powershell script (ps1 file). The problem is: if I run the .bat file directly from the server, it works. The powershell is started and do the action required within the script. But, if I execute the corresponding task (Talend job) from TMC, is does nothing. Why does it happen?&lt;/P&gt;
&lt;P&gt;The job only has a tSystem component with the command to run .bat file. When executing from TMC, the task is running on the same server, so I don't understand why if I do that manually it works, but not works executing from the task.&lt;/P&gt;
&lt;P&gt;I provide the evidence and the commands used in each file:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pllopis_0-1725523566838.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/171315iAF5C4D70E87A56C1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="pllopis_0-1725523566838.png" alt="pllopis_0-1725523566838.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pllopis_1-1725523742957.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/171316i19FA6BE7B5412598/image-size/medium?v=v2&amp;amp;px=400" role="button" title="pllopis_1-1725523742957.png" alt="pllopis_1-1725523742957.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;NOTE: If I run manually the .bat file it works and the action within the .ps1 file is made. So I guess the instructions used in the files are correct. Don't know why executing the job from TMC it does nothing.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pllopis_2-1725523908550.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/171318i91D4BEE7C59F0B32/image-size/medium?v=v2&amp;amp;px=400" role="button" title="pllopis_2-1725523908550.png" alt="pllopis_2-1725523908550.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pllopis_3-1725524003389.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/171319i42DB1A9EB27DFCB1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="pllopis_3-1725524003389.png" alt="pllopis_3-1725524003389.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Any help please?&lt;/P&gt;
&lt;P&gt;Thanks!!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 05 Sep 2024 08:20:49 GMT</pubDate>
    <dc:creator>pllopis</dc:creator>
    <dc:date>2024-09-05T08:20:49Z</dc:date>
    <item>
      <title>Run .bat file from tSystem which launch another powershell script doesn't work from TMC</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Run-bat-file-from-tSystem-which-launch-another-powershell-script/m-p/2479820#M141235</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;
&lt;P&gt;I'm trying to run a .bat file from tSystem component which launch another powershell script (ps1 file). The problem is: if I run the .bat file directly from the server, it works. The powershell is started and do the action required within the script. But, if I execute the corresponding task (Talend job) from TMC, is does nothing. Why does it happen?&lt;/P&gt;
&lt;P&gt;The job only has a tSystem component with the command to run .bat file. When executing from TMC, the task is running on the same server, so I don't understand why if I do that manually it works, but not works executing from the task.&lt;/P&gt;
&lt;P&gt;I provide the evidence and the commands used in each file:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pllopis_0-1725523566838.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/171315iAF5C4D70E87A56C1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="pllopis_0-1725523566838.png" alt="pllopis_0-1725523566838.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pllopis_1-1725523742957.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/171316i19FA6BE7B5412598/image-size/medium?v=v2&amp;amp;px=400" role="button" title="pllopis_1-1725523742957.png" alt="pllopis_1-1725523742957.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;NOTE: If I run manually the .bat file it works and the action within the .ps1 file is made. So I guess the instructions used in the files are correct. Don't know why executing the job from TMC it does nothing.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pllopis_2-1725523908550.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/171318i91D4BEE7C59F0B32/image-size/medium?v=v2&amp;amp;px=400" role="button" title="pllopis_2-1725523908550.png" alt="pllopis_2-1725523908550.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pllopis_3-1725524003389.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/171319i42DB1A9EB27DFCB1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="pllopis_3-1725524003389.png" alt="pllopis_3-1725524003389.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Any help please?&lt;/P&gt;
&lt;P&gt;Thanks!!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Sep 2024 08:20:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Run-bat-file-from-tSystem-which-launch-another-powershell-script/m-p/2479820#M141235</guid>
      <dc:creator>pllopis</dc:creator>
      <dc:date>2024-09-05T08:20:49Z</dc:date>
    </item>
  </channel>
</rss>

