<?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: tSystem Component - Unix cmd issue in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/tSystem-Component-Unix-cmd-issue/m-p/2306887#M78377</link>
    <description>&lt;P&gt;Can someone pls guide me here ?&lt;/P&gt;</description>
    <pubDate>Mon, 16 Nov 2020 02:39:06 GMT</pubDate>
    <dc:creator>rommy</dc:creator>
    <dc:date>2020-11-16T02:39:06Z</dc:date>
    <item>
      <title>tSystem Component - Unix cmd issue</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tSystem-Component-Unix-cmd-issue/m-p/2306886#M78376</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I am trying to use unix rm command in t system component to remove the previous files, but its not working , I am using following line for cmd to run on unix box.&lt;/P&gt;&lt;P&gt;single cmd &lt;/P&gt;&lt;P&gt;"rm "+context.dir+"/file_loc/load*"&lt;/P&gt;&lt;P&gt;to remove all files starting with load, I dnt want to use get file list and other components to delete files, Can someone tell me what I am doing wrong ? &lt;/P&gt;&lt;P&gt;I tried with &lt;/P&gt;&lt;P&gt;"cmd /c"+context.dir+"/file_loc/load*" &amp;gt;&amp;gt; this failed too in a single cmd.&lt;/P&gt;&lt;P&gt;Thank you !&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 01:06:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tSystem-Component-Unix-cmd-issue/m-p/2306886#M78376</guid>
      <dc:creator>rommy</dc:creator>
      <dc:date>2024-11-16T01:06:55Z</dc:date>
    </item>
    <item>
      <title>Re: tSystem Component - Unix cmd issue</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tSystem-Component-Unix-cmd-issue/m-p/2306887#M78377</link>
      <description>&lt;P&gt;Can someone pls guide me here ?&lt;/P&gt;</description>
      <pubDate>Mon, 16 Nov 2020 02:39:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tSystem-Component-Unix-cmd-issue/m-p/2306887#M78377</guid>
      <dc:creator>rommy</dc:creator>
      <dc:date>2020-11-16T02:39:06Z</dc:date>
    </item>
    <item>
      <title>Re: tSystem Component - Unix cmd issue</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tSystem-Component-Unix-cmd-issue/m-p/2306888#M78378</link>
      <description>&lt;P&gt;could you please paste your error here ?&lt;/P&gt;</description>
      <pubDate>Mon, 16 Nov 2020 06:24:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tSystem-Component-Unix-cmd-issue/m-p/2306888#M78378</guid>
      <dc:creator>Prakhar1</dc:creator>
      <dc:date>2020-11-16T06:24:10Z</dc:date>
    </item>
    <item>
      <title>Re: tSystem Component - Unix cmd issue</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tSystem-Component-Unix-cmd-issue/m-p/2306889#M78379</link>
      <description>&lt;P&gt;Hello , &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Your command must be:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;new String[]{"/bin/bash","-c","rm"+context.dir+"/file_loc/load*"}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;here, the difficulty where not the context.dir, but the * character at the end because it's a special character&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;cmd /c is for windows&lt;/P&gt;&lt;P&gt;For inbuild command on linux it's bash -c &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can also set an array of command with all the elements of the command string. More information aboiut special character usage here: https://community.talend.com/s/article/Executing-a-Linux-command-with-a-pipe-using-a-tSystem-component-IOBiH&lt;/P&gt;</description>
      <pubDate>Mon, 16 Nov 2020 12:17:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tSystem-Component-Unix-cmd-issue/m-p/2306889#M78379</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-16T12:17:03Z</dc:date>
    </item>
    <item>
      <title>Re: tSystem Component - Unix cmd issue</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tSystem-Component-Unix-cmd-issue/m-p/2306890#M78380</link>
      <description>&lt;P&gt;Thank you &lt;A href="https://community.talend.com/s/profile/0053p000006e6ETAAY" alt="https://community.talend.com/s/profile/0053p000006e6ETAAY" target="_blank"&gt;tsesdl&lt;/A&gt;&amp;nbsp;(Talend) ,your solution worked !&lt;/P&gt;</description>
      <pubDate>Thu, 19 Nov 2020 03:54:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tSystem-Component-Unix-cmd-issue/m-p/2306890#M78380</guid>
      <dc:creator>rommy</dc:creator>
      <dc:date>2020-11-19T03:54:37Z</dc:date>
    </item>
  </channel>
</rss>

