<?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 Issue with tSystem component escape chars in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Issue-with-tSystem-component-escape-chars/m-p/2312916#M83820</link>
    <description>&lt;P&gt;Hi All, I am trying to execute unix cmd in tSystem component , however component is throwing an error, Can someone please help me ? Can you point me what&amp;nbsp;I need to do to handle double quote and single quote in a cmd ? I tried escape but its not helping much&lt;/P&gt;&lt;P&gt;Working cmd:&lt;/P&gt;&lt;P&gt;touch /dir/datadir/data.csv ; awk -F'"' 'NF&amp;amp;&amp;amp;NF%2==0{ORS=ORS==RS?" ":RS}1' /dir/datadir/data.csv | tail -n +2&amp;gt; /dir/datadir/temp.csv ; touch /dir/datadir/temp.csv&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Talend cmd:&lt;/P&gt;&lt;P&gt;new String[]{"/bin/bash","-c","touch "+context.Dir+"datadir/"+((String)globalMap.get("tFileList_1_CURRENT_FILE"))+"; awk -F '"' 'NF&amp;amp;&amp;amp;NF%2==0{ORS=ORS==RS?" ":RS}1' "+context.Dir+"datadir/"+((String)globalMap.get("tFileList_1_CURRENT_FILE"))+" tail -n +2&amp;gt; "+context.Dir+"datadir/temp.csv ; touch "+context.Dir+"datadir/temp.csv" ;}&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 00:57:28 GMT</pubDate>
    <dc:creator>rommy</dc:creator>
    <dc:date>2024-11-16T00:57:28Z</dc:date>
    <item>
      <title>Issue with tSystem component escape chars</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Issue-with-tSystem-component-escape-chars/m-p/2312916#M83820</link>
      <description>&lt;P&gt;Hi All, I am trying to execute unix cmd in tSystem component , however component is throwing an error, Can someone please help me ? Can you point me what&amp;nbsp;I need to do to handle double quote and single quote in a cmd ? I tried escape but its not helping much&lt;/P&gt;&lt;P&gt;Working cmd:&lt;/P&gt;&lt;P&gt;touch /dir/datadir/data.csv ; awk -F'"' 'NF&amp;amp;&amp;amp;NF%2==0{ORS=ORS==RS?" ":RS}1' /dir/datadir/data.csv | tail -n +2&amp;gt; /dir/datadir/temp.csv ; touch /dir/datadir/temp.csv&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Talend cmd:&lt;/P&gt;&lt;P&gt;new String[]{"/bin/bash","-c","touch "+context.Dir+"datadir/"+((String)globalMap.get("tFileList_1_CURRENT_FILE"))+"; awk -F '"' 'NF&amp;amp;&amp;amp;NF%2==0{ORS=ORS==RS?" ":RS}1' "+context.Dir+"datadir/"+((String)globalMap.get("tFileList_1_CURRENT_FILE"))+" tail -n +2&amp;gt; "+context.Dir+"datadir/temp.csv ; touch "+context.Dir+"datadir/temp.csv" ;}&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 00:57:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Issue-with-tSystem-component-escape-chars/m-p/2312916#M83820</guid>
      <dc:creator>rommy</dc:creator>
      <dc:date>2024-11-16T00:57:28Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with tSystem component escape chars</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Issue-with-tSystem-component-escape-chars/m-p/2312917#M83821</link>
      <description>&lt;P&gt;@rommy rommy​&amp;nbsp;, I really not understand why are you using new String[] ,since Unix or windows will not recognize this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;tSystem will expect the Unix or windows commands.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please check the below link to execute multiple commands.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;https://help.talend.com/r/WDW8rj7PFt0758MiFF7G4Q/hmnldIQpIgPfYz_JjP6IOg&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Manohar&lt;/P&gt;</description>
      <pubDate>Tue, 15 Dec 2020 03:03:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Issue-with-tSystem-component-escape-chars/m-p/2312917#M83821</guid>
      <dc:creator>manodwhb</dc:creator>
      <dc:date>2020-12-15T03:03:48Z</dc:date>
    </item>
  </channel>
</rss>

