<?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: How to send user input/arguments to a python script in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/How-to-send-user-input-arguments-to-a-python-script/m-p/2281225#M55822</link>
    <description>&lt;P&gt;This seems like an entirely reasonable approach. Just keep in mind that when using the tSystem component, you are essentially sending a Java String to the terminal. So when building your command with parameters, think about building a Java String that represents that command. For example....&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;If you are wanting to search a directory for txt files in one run and jpeg files in another, you could parameterise your extension name in a context variable called "fileExtension", then use it in a tSystem like below...&lt;/P&gt; 
&lt;PRE&gt;"cmd /c dir *." + context.fileExtension&lt;/PRE&gt;</description>
    <pubDate>Thu, 21 Feb 2019 13:52:27 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2019-02-21T13:52:27Z</dc:date>
    <item>
      <title>How to send user input/arguments to a python script</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-send-user-input-arguments-to-a-python-script/m-p/2281224#M55821</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I came across a scenario where the required parameters must be sent to python script in talend and the python script is being called by using tsystem component.&lt;/P&gt;
&lt;P&gt;What my analysis is -&amp;gt; to store the parameters/user-input in a context and call the context variables in tsystem component.....&lt;/P&gt;
&lt;P&gt;Can you pls let me know if this is approach is correct...&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Ankit&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 06:31:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-send-user-input-arguments-to-a-python-script/m-p/2281224#M55821</guid>
      <dc:creator>ankit7359</dc:creator>
      <dc:date>2024-11-16T06:31:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to send user input/arguments to a python script</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-send-user-input-arguments-to-a-python-script/m-p/2281225#M55822</link>
      <description>&lt;P&gt;This seems like an entirely reasonable approach. Just keep in mind that when using the tSystem component, you are essentially sending a Java String to the terminal. So when building your command with parameters, think about building a Java String that represents that command. For example....&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;If you are wanting to search a directory for txt files in one run and jpeg files in another, you could parameterise your extension name in a context variable called "fileExtension", then use it in a tSystem like below...&lt;/P&gt; 
&lt;PRE&gt;"cmd /c dir *." + context.fileExtension&lt;/PRE&gt;</description>
      <pubDate>Thu, 21 Feb 2019 13:52:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-send-user-input-arguments-to-a-python-script/m-p/2281225#M55822</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-02-21T13:52:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to send user input/arguments to a python script</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-send-user-input-arguments-to-a-python-script/m-p/2281226#M55823</link>
      <description>I ll give it a try and get back to you on this...&lt;BR /&gt;Thanks.</description>
      <pubDate>Thu, 21 Feb 2019 14:16:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-send-user-input-arguments-to-a-python-script/m-p/2281226#M55823</guid>
      <dc:creator>ankit7359</dc:creator>
      <dc:date>2019-02-21T14:16:44Z</dc:date>
    </item>
  </channel>
</rss>

