<?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: [resolved] How do i pass a String parameter with space to shell file from talend? in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/resolved-How-do-i-pass-a-String-parameter-with-space-to-shell/m-p/2368629#M131870</link>
    <description>Yes, that worked too. Thanks Arno.&lt;BR /&gt;Regards,&lt;BR /&gt;Diwakar</description>
    <pubDate>Thu, 12 Jan 2012 10:59:06 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2012-01-12T10:59:06Z</dc:date>
    <item>
      <title>[resolved] How do i pass a String parameter with space to shell file from talend?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-How-do-i-pass-a-String-parameter-with-space-to-shell/m-p/2368622#M131863</link>
      <description>Hi,
&lt;BR /&gt;I have a shell file test.sh where i just do echo "$1", when i pass parameter String with spaces for e.g 'a b c' through command prompt it displays a b c, but when i try to call the same shell file through talend's tSystem component in the same way saying "sh ./test.sh 'a b c' " it displays only 'a .
&lt;BR /&gt;This is a very basic requirement while we pass context parameters. So, i am sure there must be a solution to this. I have tried using the escape character '\' before the single quotes but no help.
&lt;BR /&gt;Any help will be really appreciated.</description>
      <pubDate>Sat, 16 Nov 2024 12:27:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-How-do-i-pass-a-String-parameter-with-space-to-shell/m-p/2368622#M131863</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T12:27:40Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] How do i pass a String parameter with space to shell file from talend?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-How-do-i-pass-a-String-parameter-with-space-to-shell/m-p/2368623#M131864</link>
      <description>In other words, how do i pass a String with spaces as a single parameter to a shell file triggered from the tSystem component in linux OS?</description>
      <pubDate>Thu, 12 Jan 2012 07:47:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-How-do-i-pass-a-String-parameter-with-space-to-shell/m-p/2368623#M131864</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-01-12T07:47:20Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] How do i pass a String parameter with space to shell file from talend?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-How-do-i-pass-a-String-parameter-with-space-to-shell/m-p/2368624#M131865</link>
      <description>Hi 
&lt;BR /&gt;I find a topic which is related to this issue 
&lt;A href="https://community.qlik.com/s/feed/0D53p00007vCqBgCAK" target="_blank" rel="nofollow noopener noreferrer"&gt;https://community.talend.com/t5/Design-and-Development/Will-tSystem-function-with-spaces/td-p/107155&lt;/A&gt;. 
&lt;BR /&gt;Regards, 
&lt;BR /&gt;Pedro</description>
      <pubDate>Thu, 12 Jan 2012 07:56:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-How-do-i-pass-a-String-parameter-with-space-to-shell/m-p/2368624#M131865</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-01-12T07:56:09Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] How do i pass a String parameter with space to shell file from talend?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-How-do-i-pass-a-String-parameter-with-space-to-shell/m-p/2368625#M131866</link>
      <description>&lt;BLOCKQUOTE&gt; 
 &lt;TABLE border="1"&gt; 
  &lt;TBODY&gt; 
   &lt;TR&gt; 
    &lt;TD&gt;Hi&lt;BR /&gt;I find a topic which is related to this issue &lt;A href="https://community.qlik.com/s/feed/0D53p00007vCqBgCAK" target="_blank" rel="nofollow noopener noreferrer"&gt;https://community.talend.com/t5/Design-and-Development/Will-tSystem-function-with-spaces/td-p/107155&lt;/A&gt;.&lt;BR /&gt;Regards,&lt;BR /&gt;Pedro&lt;/TD&gt; 
   &lt;/TR&gt; 
  &lt;/TBODY&gt; 
 &lt;/TABLE&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;BR /&gt;Hi, 
&lt;BR /&gt;That issue says to put the tSystem command into a shell file and then call the shell from tSystem. 
&lt;BR /&gt;I am also calling a shell from tSystem, but the problem is while passing parameters to that shell file. It seems one cannot pass a String parameter with spaces to a shell file. 
&lt;BR /&gt;Regards, 
&lt;BR /&gt;Diwakar</description>
      <pubDate>Thu, 12 Jan 2012 08:11:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-How-do-i-pass-a-String-parameter-with-space-to-shell/m-p/2368625#M131866</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-01-12T08:11:06Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] How do i pass a String parameter with space to shell file from talend?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-How-do-i-pass-a-String-parameter-with-space-to-shell/m-p/2368626#M131867</link>
      <description>Hi, 
&lt;BR /&gt;I've tested this and found another way to pass these paramters containing white spaces. The following worked for me when I entered it inside Commdn parameter of a tSystem component: 
&lt;BR /&gt;new String[] { "./test.sh", "a b c" } 
&lt;BR /&gt;Why? Because the Runtime.Exec function that is called by Talend can handle a String array as parameter as well, instead of a normal String. Any extra parameters can be added as desired. 
&lt;BR /&gt;Hope this helps. 
&lt;BR /&gt;Regards, 
&lt;BR /&gt;Arno</description>
      <pubDate>Thu, 12 Jan 2012 08:23:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-How-do-i-pass-a-String-parameter-with-space-to-shell/m-p/2368626#M131867</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-01-12T08:23:03Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] How do i pass a String parameter with space to shell file from talend?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-How-do-i-pass-a-String-parameter-with-space-to-shell/m-p/2368627#M131868</link>
      <description>&lt;BLOCKQUOTE&gt; 
 &lt;TABLE border="1"&gt; 
  &lt;TBODY&gt; 
   &lt;TR&gt; 
    &lt;TD&gt;Hi,&lt;BR /&gt;I've tested this and found another way to pass these paramters containing white spaces. The following worked for me when I entered it inside Commdn parameter of a tSystem component:&lt;BR /&gt;new String[] { "./test.sh", "a b c" }&lt;BR /&gt;Why? Because the Runtime.Exec function that is called by Talend can handle a String array as parameter as well, instead of a normal String. Any extra parameters can be added as desired.&lt;BR /&gt;Hope this helps.&lt;BR /&gt;Regards,&lt;BR /&gt;Arno&lt;/TD&gt; 
   &lt;/TR&gt; 
  &lt;/TBODY&gt; 
 &lt;/TABLE&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;BR /&gt;Hi Arno, 
&lt;BR /&gt;Great!!! That worked perfectly for me as well. 
&lt;BR /&gt;But then how do we pass integer values to the String array? 
&lt;BR /&gt;Regards, 
&lt;BR /&gt;Diwakar</description>
      <pubDate>Thu, 12 Jan 2012 09:48:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-How-do-i-pass-a-String-parameter-with-space-to-shell/m-p/2368627#M131868</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-01-12T09:48:10Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] How do i pass a String parameter with space to shell file from talend?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-How-do-i-pass-a-String-parameter-with-space-to-shell/m-p/2368628#M131869</link>
      <description>Hi Diwakar,
&lt;BR /&gt;I think you can pass integers like this:
&lt;BR /&gt;new String[] { "./test.sh", String.valueOf(12), String.valueOf(1) + " " + String.valueOf(1) }
&lt;BR /&gt;This should run the test script with the following commandline:
&lt;BR /&gt;./test.sh 12 '1 1'
&lt;BR /&gt;Best regards,
&lt;BR /&gt;Arno</description>
      <pubDate>Thu, 12 Jan 2012 10:05:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-How-do-i-pass-a-String-parameter-with-space-to-shell/m-p/2368628#M131869</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-01-12T10:05:32Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] How do i pass a String parameter with space to shell file from talend?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-How-do-i-pass-a-String-parameter-with-space-to-shell/m-p/2368629#M131870</link>
      <description>Yes, that worked too. Thanks Arno.&lt;BR /&gt;Regards,&lt;BR /&gt;Diwakar</description>
      <pubDate>Thu, 12 Jan 2012 10:59:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-How-do-i-pass-a-String-parameter-with-space-to-shell/m-p/2368629#M131870</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-01-12T10:59:06Z</dc:date>
    </item>
  </channel>
</rss>

