<?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: Unable to execute a shell script with context variables as parameters in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Unable-to-execute-a-shell-script-with-context-variables-as/m-p/2328175#M97479</link>
    <description>&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;The -context_param is used to pass value to context variables when executing the Talend job script out of studio, if myscript.sh is a common unix shell script, please google it on internet, eg:&lt;/P&gt;&lt;P&gt;https://unix.stackexchange.com/questions/31414/how-can-i-pass-a-command-line-argument-into-a-shell-script&lt;/P&gt;&lt;P&gt;https://unix.stackexchange.com/questions/372713/how-can-i-pass-variable-in-script-via-terminal-when-execute-abc-sh&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Shong&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 01 Mar 2021 03:57:57 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2021-03-01T03:57:57Z</dc:date>
    <item>
      <title>Unable to execute a shell script with context variables as parameters</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Unable-to-execute-a-shell-script-with-context-variables-as/m-p/2328170#M97474</link>
      <description>&lt;P&gt;I am trying to run a Talend job to call a unix shell script using tsystem , but I noticed that the parameters I am passing while calling the shell script is not getting passed to script. &lt;/P&gt;&lt;P&gt;I tried multiple ways but could not find a way to achieve this &lt;/P&gt;&lt;P&gt;Following is the command I used :&lt;/P&gt;&lt;P&gt;"sudo su - talend_user -c &lt;A href="http://myscript.sh" alt="http://myscript.sh" target="_blank"&gt;myscript.sh&lt;/A&gt; "+context.param1+" "+context.param2+" "+context.param3&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 00:32:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Unable-to-execute-a-shell-script-with-context-variables-as/m-p/2328170#M97474</guid>
      <dc:creator>VChauhan1611936886</dc:creator>
      <dc:date>2024-11-16T00:32:06Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to execute a shell script with context variables as parameters</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Unable-to-execute-a-shell-script-with-context-variables-as/m-p/2328171#M97475</link>
      <description>&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;Is myscript.sh a job script? Please try:&lt;/P&gt;&lt;P&gt;"sudo su - talend_user -c&amp;nbsp;&lt;A href="http://myscript.sh/" alt="http://myscript.sh/" target="_blank"&gt;myscript.sh&lt;/A&gt;&amp;nbsp;--context=Default --context_param varName1="+context.varName1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Shong&lt;/P&gt;</description>
      <pubDate>Thu, 25 Feb 2021 07:18:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Unable-to-execute-a-shell-script-with-context-variables-as/m-p/2328171#M97475</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-02-25T07:18:26Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to execute a shell script with context variables as parameters</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Unable-to-execute-a-shell-script-with-context-variables-as/m-p/2328172#M97476</link>
      <description>&lt;P&gt;Hi @Shicong Hong​&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Will this cause a problem if context.param2 is an Integer?&lt;/LI&gt;&lt;LI&gt;How to pass multiple arguments, "sudo su - talend_user -c&amp;nbsp;&lt;A href="http://myscript.sh/" alt="http://myscript.sh/" target="_blank"&gt;myscript.sh&lt;/A&gt;&amp;nbsp;--context=Default --context_param varName1="+context.varName1+" --context_param varName2="+context.varName2&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Like this? Please note the space after Name1+"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raghu&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Feb 2021 08:55:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Unable-to-execute-a-shell-script-with-context-variables-as/m-p/2328172#M97476</guid>
      <dc:creator>Raghuram_Puram</dc:creator>
      <dc:date>2021-02-25T08:55:21Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to execute a shell script with context variables as parameters</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Unable-to-execute-a-shell-script-with-context-variables-as/m-p/2328173#M97477</link>
      <description>&lt;P&gt;@Shong .. This is a unix shell script  whicj is trying to perform some operations on files.&lt;/P&gt;</description>
      <pubDate>Thu, 25 Feb 2021 12:59:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Unable-to-execute-a-shell-script-with-context-variables-as/m-p/2328173#M97477</guid>
      <dc:creator>VChauhan1611936886</dc:creator>
      <dc:date>2021-02-25T12:59:47Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to execute a shell script with context variables as parameters</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Unable-to-execute-a-shell-script-with-context-variables-as/m-p/2328174#M97478</link>
      <description>&lt;P&gt;@Shicong Hong​&amp;nbsp; I tried following approach, it does not seems to be working :-&lt;/P&gt;&lt;P&gt;"sudo su - talend_user -c myscript.sh --context=Default --context_param param1="+context.param1+" --context_param param2="+context.param2+" --context_param param3="+context.param3+" --context_param param4="+context.param4&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I also tried an alternative approach :-&lt;/P&gt;&lt;P&gt;"sudo su - talend_user -c myscript.sh param1="+context.param1+" param2="+context.param2+" param3="+context.param3+" param4="+context.param4&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't see parameters getting passed to my unix shell script&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Feb 2021 14:30:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Unable-to-execute-a-shell-script-with-context-variables-as/m-p/2328174#M97478</guid>
      <dc:creator>VChauhan1611936886</dc:creator>
      <dc:date>2021-02-25T14:30:34Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to execute a shell script with context variables as parameters</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Unable-to-execute-a-shell-script-with-context-variables-as/m-p/2328175#M97479</link>
      <description>&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;The -context_param is used to pass value to context variables when executing the Talend job script out of studio, if myscript.sh is a common unix shell script, please google it on internet, eg:&lt;/P&gt;&lt;P&gt;https://unix.stackexchange.com/questions/31414/how-can-i-pass-a-command-line-argument-into-a-shell-script&lt;/P&gt;&lt;P&gt;https://unix.stackexchange.com/questions/372713/how-can-i-pass-variable-in-script-via-terminal-when-execute-abc-sh&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Shong&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Mar 2021 03:57:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Unable-to-execute-a-shell-script-with-context-variables-as/m-p/2328175#M97479</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-03-01T03:57:57Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to execute a shell script with context variables as parameters</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Unable-to-execute-a-shell-script-with-context-variables-as/m-p/2328176#M97480</link>
      <description>&lt;P&gt;I tried to search lots of options to run a script from talend and looks to me that although talend facilitates running script but does not support passing parameters to the unix shell script.&lt;/P&gt;</description>
      <pubDate>Mon, 01 Mar 2021 14:29:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Unable-to-execute-a-shell-script-with-context-variables-as/m-p/2328176#M97480</guid>
      <dc:creator>VChauhan1611936886</dc:creator>
      <dc:date>2021-03-01T14:29:55Z</dc:date>
    </item>
  </channel>
</rss>

