<?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: merge files using unix command in tSystem is not working ? in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/merge-files-using-unix-command-in-tSystem-is-not-working/m-p/2346215#M113644</link>
    <description>&lt;P&gt;Even If I hardcode the command then also it is not working&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"paste -d ',' out1.csv out2.csv &amp;gt; new.csv"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the command I use inside the tSystem component.&amp;nbsp;&lt;/P&gt;&lt;P&gt;And the files out1.csv and out2.csv are there in the current directory. That I can see when I list the files using "ls -ltr" command.&lt;/P&gt;</description>
    <pubDate>Mon, 18 Sep 2017 06:05:17 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-09-18T06:05:17Z</dc:date>
    <item>
      <title>merge files using unix command in tSystem is not working ?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/merge-files-using-unix-command-in-tSystem-is-not-working/m-p/2346213#M113642</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I try to merge two csv files line by line using the unix command&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;paste -d ',' file1.csv file2.csv &amp;gt; file3.csv&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But, I always get the error&amp;nbsp;&lt;/P&gt;
&lt;P&gt;paste: &amp;gt;: No such file or directory&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But, the files are present in the current directory, when I display the files using "ls -ltr" in another tSystem component, I am able to see the files file1.csv and file2.csv&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;the file names are derived using tjava component and the command is stored in context variable. and I try to execute the command using tSystem component.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Anyone help to resolve this issue ?&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 09:16:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/merge-files-using-unix-command-in-tSystem-is-not-working/m-p/2346213#M113642</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T09:16:54Z</dc:date>
    </item>
    <item>
      <title>Re: merge files using unix command in tSystem is not working ?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/merge-files-using-unix-command-in-tSystem-is-not-working/m-p/2346214#M113643</link>
      <description>&lt;P&gt;Can you show us your configuration of the tSystem (a screenshot), the configuration of the code were you derive the names (in the tJava?) and a screenshot of the job? There are a number of things that may have gone wrong here and that information should give us enough info to help you fix it....or enough info to know to ask for more &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 17 Sep 2017 22:22:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/merge-files-using-unix-command-in-tSystem-is-not-working/m-p/2346214#M113643</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-09-17T22:22:22Z</dc:date>
    </item>
    <item>
      <title>Re: merge files using unix command in tSystem is not working ?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/merge-files-using-unix-command-in-tSystem-is-not-working/m-p/2346215#M113644</link>
      <description>&lt;P&gt;Even If I hardcode the command then also it is not working&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"paste -d ',' out1.csv out2.csv &amp;gt; new.csv"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the command I use inside the tSystem component.&amp;nbsp;&lt;/P&gt;&lt;P&gt;And the files out1.csv and out2.csv are there in the current directory. That I can see when I list the files using "ls -ltr" command.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Sep 2017 06:05:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/merge-files-using-unix-command-in-tSystem-is-not-working/m-p/2346215#M113644</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-09-18T06:05:17Z</dc:date>
    </item>
    <item>
      <title>Re: merge files using unix command in tSystem is not working ?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/merge-files-using-unix-command-in-tSystem-is-not-working/m-p/2346216#M113645</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Found a solution for this one as well. The tSystem component is designed to run the windows commands and not for unix.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We will have use the below string array in order for this to work.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;new String[]{"/bin/bash","-c","" +context.merge_command}&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The actual unix command to merge the files is present in the context variable context.merge_command. That is&amp;nbsp;&lt;SPAN&gt;"paste -d ',' out1.csv out2.csv &amp;gt; new.csv"&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Sep 2017 10:56:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/merge-files-using-unix-command-in-tSystem-is-not-working/m-p/2346216#M113645</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-09-21T10:56:11Z</dc:date>
    </item>
  </channel>
</rss>

