<?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: Will tSystem function with spaces? in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Will-tSystem-function-with-spaces/m-p/2317502#M87938</link>
    <description>I think the quickest route is to create a custom shell script that launch the commands you want and then call the script from tsystem ( the advange is that you don't need to change the talend job if you need to change the script ).&lt;BR /&gt;tsystem in java uses api Runtime.exec that does split the argument string using spaces...&lt;BR /&gt;bye</description>
    <pubDate>Wed, 09 Sep 2009 12:46:01 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2009-09-09T12:46:01Z</dc:date>
    <item>
      <title>Will tSystem function with spaces?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Will-tSystem-function-with-spaces/m-p/2317501#M87937</link>
      <description>I'm trying to use tSystem in TOS 3.1.3 within a java project running on Linux in order to call a command line utility from VMWare: 
&lt;BR /&gt;tSystem Component Command: 
&lt;BR /&gt;"/usr/bin/vmrun -T server -h &lt;A href="https://server" target="_blank"&gt;https://server&lt;/A&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MAB6.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/158321i00588DF41617C922/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MAB6.png" alt="0683p000009MAB6.png" /&gt;&lt;/span&gt;ort/sdk -u username -p password -gu guestuser -gp guestpassword runProgramInGuest \" Virtual/virtual_file.vmx\" -activeWindow -interactive \"c:\\program files\\path\\program.exe\" /switch" 
&lt;BR /&gt;The issue seems to be with the spaces within the quoted paths, starting with the one after \" 
&lt;BR /&gt;Even though the double quotes are escaped, the tSystem command is broken at each space within the quoted string, just as though there were no quotes. 
&lt;BR /&gt;This same command runs perfectly in a Perl project using double quotes without the escape. 
&lt;BR /&gt;How might I deal with spaces properly? I thought that enclosing them in escaped double quotes would be sufficient. 
&lt;BR /&gt;On run, the jobs errors with: 
&lt;BR /&gt;Error: Cannot open VM: ", unknown file suffix 
&lt;BR /&gt;which seems to indicate that the command is being split on the space.</description>
      <pubDate>Sat, 16 Nov 2024 13:46:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Will-tSystem-function-with-spaces/m-p/2317501#M87937</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2024-11-16T13:46:53Z</dc:date>
    </item>
    <item>
      <title>Re: Will tSystem function with spaces?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Will-tSystem-function-with-spaces/m-p/2317502#M87938</link>
      <description>I think the quickest route is to create a custom shell script that launch the commands you want and then call the script from tsystem ( the advange is that you don't need to change the talend job if you need to change the script ).&lt;BR /&gt;tsystem in java uses api Runtime.exec that does split the argument string using spaces...&lt;BR /&gt;bye</description>
      <pubDate>Wed, 09 Sep 2009 12:46:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Will-tSystem-function-with-spaces/m-p/2317502#M87938</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-09-09T12:46:01Z</dc:date>
    </item>
    <item>
      <title>Re: Will tSystem function with spaces?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Will-tSystem-function-with-spaces/m-p/2317503#M87939</link>
      <description>Thanks. That's unfortunate.</description>
      <pubDate>Wed, 09 Sep 2009 17:57:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Will-tSystem-function-with-spaces/m-p/2317503#M87939</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2009-09-09T17:57:53Z</dc:date>
    </item>
    <item>
      <title>Re: Will tSystem function with spaces?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Will-tSystem-function-with-spaces/m-p/2317504#M87940</link>
      <description>Better fix implemented here in case anyone else comes across this issue again:
&lt;BR /&gt;
&lt;A href="https://help.talend.com/search/all?query=Executing+a+command+with+spaces+using+a+tSystem+component&amp;amp;content-lang=en" rel="nofollow noopener noreferrer"&gt;https://help.talend.com/search/all?query=Executing+a+command+with+spaces+using+a+tSystem+component&amp;amp;content-lang=en&lt;/A&gt;</description>
      <pubDate>Mon, 15 Jul 2013 19:48:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Will-tSystem-function-with-spaces/m-p/2317504#M87940</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-07-15T19:48:27Z</dc:date>
    </item>
  </channel>
</rss>

