<?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 tSystem with parameters in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/tSystem-with-parameters/m-p/2248748#M33508</link>
    <description>Hi, 
&lt;BR /&gt;I am trying to execute a program for all files in a filelist. 
&lt;BR /&gt;My tSystem command should be something like: 
&lt;BR /&gt; 
&lt;BR /&gt;"cmd /c cd 'C:/Program Files/test' testprogram 'D:/Data/References/test.txt' ((String)globalMap.get('tFileList_1_CURRENT_FILEPATH'))" 
&lt;BR /&gt; 
&lt;BR /&gt;My testprogram needs two parameters. The first one is a known file 'D:/Data/References/test.txt' and the second one is the filename that comes from tFileList_1. The error that I get when I run this is 
&lt;BR /&gt; 
&lt;BR /&gt;The filename, directory name, or volume label syntax is incorrect. 
&lt;BR /&gt;Obviously one of the filenames is not interpreted properly. Can you plese help me with this? 
&lt;BR /&gt;Thanks 
&lt;BR /&gt;Magi</description>
    <pubDate>Sat, 16 Nov 2024 14:30:39 GMT</pubDate>
    <dc:creator>_AnonymousUser</dc:creator>
    <dc:date>2024-11-16T14:30:39Z</dc:date>
    <item>
      <title>tSystem with parameters</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tSystem-with-parameters/m-p/2248748#M33508</link>
      <description>Hi, 
&lt;BR /&gt;I am trying to execute a program for all files in a filelist. 
&lt;BR /&gt;My tSystem command should be something like: 
&lt;BR /&gt; 
&lt;BR /&gt;"cmd /c cd 'C:/Program Files/test' testprogram 'D:/Data/References/test.txt' ((String)globalMap.get('tFileList_1_CURRENT_FILEPATH'))" 
&lt;BR /&gt; 
&lt;BR /&gt;My testprogram needs two parameters. The first one is a known file 'D:/Data/References/test.txt' and the second one is the filename that comes from tFileList_1. The error that I get when I run this is 
&lt;BR /&gt; 
&lt;BR /&gt;The filename, directory name, or volume label syntax is incorrect. 
&lt;BR /&gt;Obviously one of the filenames is not interpreted properly. Can you plese help me with this? 
&lt;BR /&gt;Thanks 
&lt;BR /&gt;Magi</description>
      <pubDate>Sat, 16 Nov 2024 14:30:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tSystem-with-parameters/m-p/2248748#M33508</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2024-11-16T14:30:39Z</dc:date>
    </item>
    <item>
      <title>Re: tSystem with parameters</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tSystem-with-parameters/m-p/2248749#M33509</link>
      <description>I think that you can test : 
&lt;BR /&gt;"cmd /c C:/Program Files/test/testprogram 'D:/Data/References/test.txt' '"+((String)globalMap.get('tFileList_1_CURRENT_FILEPATH'))+"'"
&lt;BR /&gt;Regards,</description>
      <pubDate>Fri, 16 Nov 2007 19:43:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tSystem-with-parameters/m-p/2248749#M33509</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-11-16T19:43:21Z</dc:date>
    </item>
    <item>
      <title>Re: tSystem with parameters</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tSystem-with-parameters/m-p/2248750#M33510</link>
      <description>Thank you. It is getting better, but I still have problems when my folder names have spaces. From a cmd double quotes usually do the trick, but in TOS when I use double instead of single quotes I am getting compilation errors&lt;BR /&gt;Can you plese advise how to bypass this problem?&lt;BR /&gt;Thanks&lt;BR /&gt;Magi</description>
      <pubDate>Mon, 19 Nov 2007 08:29:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tSystem-with-parameters/m-p/2248750#M33510</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2007-11-19T08:29:39Z</dc:date>
    </item>
    <item>
      <title>Re: tSystem with parameters</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tSystem-with-parameters/m-p/2248751#M33511</link>
      <description>OK, solved. Just replace sinlge quotes with \"&lt;BR /&gt;Magi</description>
      <pubDate>Mon, 19 Nov 2007 08:58:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tSystem-with-parameters/m-p/2248751#M33511</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2007-11-19T08:58:22Z</dc:date>
    </item>
    <item>
      <title>Re: tSystem with parameters</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tSystem-with-parameters/m-p/2248752#M33512</link>
      <description>Hi, 
&lt;BR /&gt;Moving on, I would like to now redirect my output to a file. If I use 
&lt;BR /&gt; 
&lt;BR /&gt;"cmd /c C:/Program Files/test/testprogram \"D:/Data/References/test.txt \""+((String)globalMap.get('tFileList_1_CURRENT_FILEPATH'))+"\" &amp;gt; \""+((String)globalMap.get('newPath')) + "\"", 
&lt;BR /&gt;the file doesn't get created. 
&lt;BR /&gt;I have set up the output to be to a console, so I presume this should work, but it doesn't. 
&lt;BR /&gt;The output to a global doesnt work for me either because the program that I am running generates a string that should be saved as xml. 
&lt;BR /&gt; 
&lt;BR /&gt;Any ideas? 
&lt;BR /&gt;Thanks 
&lt;BR /&gt;Magi</description>
      <pubDate>Mon, 19 Nov 2007 10:23:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tSystem-with-parameters/m-p/2248752#M33512</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2007-11-19T10:23:47Z</dc:date>
    </item>
    <item>
      <title>Re: tSystem with parameters</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tSystem-with-parameters/m-p/2248753#M33513</link>
      <description>Hi magi,
&lt;BR /&gt;I observed that with JAVA the pathnames including spaces are sometimes badly interpreted when they are placed in command parameters.
&lt;BR /&gt;In my case, i installed the Talen environment in C:\Talend instead of C:\Program Files\Talend so that all functions well. 
&lt;BR /&gt;In any case, to create directories with empty or accentuated characters is not a good idea... ; -)</description>
      <pubDate>Mon, 19 Nov 2007 10:36:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tSystem-with-parameters/m-p/2248753#M33513</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-11-19T10:36:58Z</dc:date>
    </item>
    <item>
      <title>Re: tSystem with parameters</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tSystem-with-parameters/m-p/2248754#M33514</link>
      <description>Thanks. I am afraid I don't have a choice as I receive huge volumes of data saved exactly in those kind of directory names. Renaming the folders is completely unnecessary and error prone. Nevertheless, that is already solved.
&lt;BR /&gt;
&lt;BR /&gt;My new problem is that I want to redirect my output to a file and using the standard cmd redirection doesn't work with tSystem. I would appereciate advise on this issue.
&lt;BR /&gt;Thanks
&lt;BR /&gt;Magi</description>
      <pubDate>Mon, 19 Nov 2007 10:47:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tSystem-with-parameters/m-p/2248754#M33514</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2007-11-19T10:47:17Z</dc:date>
    </item>
    <item>
      <title>Re: tSystem with parameters</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tSystem-with-parameters/m-p/2248755#M33515</link>
      <description>I am having the same problem with Unix redirect '&amp;gt;'. tSystem does not recognize it.  Possible bug? are there any other alternative way to to redirect? Thanks.</description>
      <pubDate>Fri, 28 Dec 2007 20:47:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tSystem-with-parameters/m-p/2248755#M33515</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-12-28T20:47:01Z</dc:date>
    </item>
    <item>
      <title>Re: tSystem with parameters</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tSystem-with-parameters/m-p/2248756#M33516</link>
      <description>"bump" on this five year old post. . . 
&lt;BR /&gt;I want to send teh output of svndump to a file.
&lt;BR /&gt;tystem can send output to console, but not directly to a file.
&lt;BR /&gt;It does have a "normal" output, docs: "normal: data is passed on to the component that comes next."
&lt;BR /&gt;So maybe having the output go to tFileOutputDelimited works, setting the delimiter to nothing, and sending out one big string of data?</description>
      <pubDate>Mon, 02 Dec 2013 22:44:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tSystem-with-parameters/m-p/2248756#M33516</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-12-02T22:44:46Z</dc:date>
    </item>
  </channel>
</rss>

