<?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 command using tSystem component in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/unable-to-execute-command-using-tSystem-component/m-p/2324344#M94053</link>
    <description>&lt;P&gt;That is the location where cmd is started. I don't believe it will be where cmd's working directory will be when it opens.&lt;/P&gt;</description>
    <pubDate>Tue, 20 Mar 2018 22:47:59 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-03-20T22:47:59Z</dc:date>
    <item>
      <title>unable to execute command using tSystem component</title>
      <link>https://community.qlik.com/t5/Talend-Studio/unable-to-execute-command-using-tSystem-component/m-p/2324341#M94050</link>
      <description>&lt;P&gt;Hello&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I am able to execute the following aws command at my local machine's command prompt:&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;aws s3 ls s3://pmassieh.talend.s3.bucket&lt;/FONT&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="aws_command.png" style="width: 987px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009Lt7h.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/150988i958F0B8BA8CB2262/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009Lt7h.png" alt="0683p000009Lt7h.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;However when I attempt to execute the same command from the tSystem component inside a job that runs on the same local machine:&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tsystem_component.png" style="width: 896px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009Lt8e.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/141154i9C1F528A790A00BC/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009Lt8e.png" alt="0683p000009Lt8e.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I get error:&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;'aws' is not recognized as an internal or external command,&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;operable program or batch file.&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;.------.&lt;BR /&gt;|tLogRow_2|&lt;BR /&gt;|=----=|&lt;BR /&gt;|output|&lt;BR /&gt;|=----=|&lt;BR /&gt;|null&amp;nbsp; |&lt;BR /&gt;'------'&lt;BR /&gt;&lt;BR /&gt;[statistics] disconnected&lt;BR /&gt;Job s3 ended at 19:11 20/03/2018. [exit code=0]&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Am I missing anything here ?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Appreciate your help&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thanks&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Patrice&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 08:31:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/unable-to-execute-command-using-tSystem-component/m-p/2324341#M94050</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T08:31:45Z</dc:date>
    </item>
    <item>
      <title>Re: unable to execute command using tSystem component</title>
      <link>https://community.qlik.com/t5/Talend-Studio/unable-to-execute-command-using-tSystem-component/m-p/2324342#M94051</link>
      <description>&lt;P&gt;Have you tried changing your aws command to include it's full path? I suspect that aws is not in your PATH variable.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Mar 2018 20:22:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/unable-to-execute-command-using-tSystem-component/m-p/2324342#M94051</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-03-20T20:22:56Z</dc:date>
    </item>
    <item>
      <title>Re: unable to execute command using tSystem component</title>
      <link>https://community.qlik.com/t5/Talend-Studio/unable-to-execute-command-using-tSystem-component/m-p/2324343#M94052</link>
      <description>&lt;P&gt;yes in the tSystem Component I set the home directory where the aws executable resides . See screen shot, but still to no avail...&lt;/P&gt;</description>
      <pubDate>Tue, 20 Mar 2018 21:06:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/unable-to-execute-command-using-tSystem-component/m-p/2324343#M94052</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-03-20T21:06:31Z</dc:date>
    </item>
    <item>
      <title>Re: unable to execute command using tSystem component</title>
      <link>https://community.qlik.com/t5/Talend-Studio/unable-to-execute-command-using-tSystem-component/m-p/2324344#M94053</link>
      <description>&lt;P&gt;That is the location where cmd is started. I don't believe it will be where cmd's working directory will be when it opens.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Mar 2018 22:47:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/unable-to-execute-command-using-tSystem-component/m-p/2324344#M94053</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-03-20T22:47:59Z</dc:date>
    </item>
    <item>
      <title>Re: unable to execute command using tSystem component</title>
      <link>https://community.qlik.com/t5/Talend-Studio/unable-to-execute-command-using-tSystem-component/m-p/2324345#M94054</link>
      <description>How do I find out the commands working directory then ?&lt;BR /&gt;</description>
      <pubDate>Tue, 20 Mar 2018 23:13:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/unable-to-execute-command-using-tSystem-component/m-p/2324345#M94054</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-03-20T23:13:33Z</dc:date>
    </item>
    <item>
      <title>Re: unable to execute command using tSystem component</title>
      <link>https://community.qlik.com/t5/Talend-Studio/unable-to-execute-command-using-tSystem-component/m-p/2324346#M94055</link>
      <description>&lt;P&gt;I can't test this as i don't have AWS on my machine and I am using a Mac (so the command will be different), but this may work for you....&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;"cmd /c \"c:program files/Amazon/AWSCLI/awscli/aws\" s3 ls s3://" + context.S3_Bucket&lt;/PRE&gt;</description>
      <pubDate>Wed, 21 Mar 2018 00:11:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/unable-to-execute-command-using-tSystem-component/m-p/2324346#M94055</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-03-21T00:11:56Z</dc:date>
    </item>
    <item>
      <title>Re: unable to execute command using tSystem component</title>
      <link>https://community.qlik.com/t5/Talend-Studio/unable-to-execute-command-using-tSystem-component/m-p/2324347#M94056</link>
      <description>&lt;P&gt;Thanks Rich&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I tried that:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;"cmd /c \"C:/Program Files/Amazon/AWSCLI/awscli/aws\" s3 ls s3://" + context.S3_Bucket&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;but still getting :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;'C:/Program' is not recognized as an internal or external command,&lt;BR /&gt;operable program or batch file.&lt;BR /&gt;.------.&lt;BR /&gt;|tLogRow_2|&lt;BR /&gt;|=----=|&lt;BR /&gt;|output|&lt;BR /&gt;|=----=|&lt;BR /&gt;|null&amp;nbsp; |&lt;BR /&gt;'------'&lt;BR /&gt;[statistics] disconnected&lt;BR /&gt;Job s3 ended at 07:33 21/03/2018. [exit code=0]&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So looks like the space is the issue and is not being recognized...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Mar 2018 07:40:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/unable-to-execute-command-using-tSystem-component/m-p/2324347#M94056</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-03-21T07:40:59Z</dc:date>
    </item>
    <item>
      <title>Re: unable to execute command using tSystem component</title>
      <link>https://community.qlik.com/t5/Talend-Studio/unable-to-execute-command-using-tSystem-component/m-p/2324348#M94057</link>
      <description>&lt;P&gt;Yes the space in the name is what would cause that, but I was hoping the quotes would prevent that causing an issue. As they would if you were to actually use that command in the command-line. The other thing to try is to add the path to AWS to your PATH operating system variable. Do that, restart Studio and run your original attempt and it should work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The tSystem component is arguably the worst implemented component by Talend. I seldom use it and use Java instead because it makes things unnecessarily complicated. The other thing to try is to prepare a&amp;nbsp; .bat file (maybe using your Talend job) and call it from the tSystem. Then you simply have to carry out a simple call and leave the .bat to do the hard work.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Mar 2018 09:43:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/unable-to-execute-command-using-tSystem-component/m-p/2324348#M94057</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-03-21T09:43:48Z</dc:date>
    </item>
    <item>
      <title>Re: unable to execute command using tSystem component</title>
      <link>https://community.qlik.com/t5/Talend-Studio/unable-to-execute-command-using-tSystem-component/m-p/2324349#M94058</link>
      <description>&lt;P&gt;Thanks Richard. I will try that. Thanks for your help so far.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Mar 2018 12:36:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/unable-to-execute-command-using-tSystem-component/m-p/2324349#M94058</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-03-21T12:36:01Z</dc:date>
    </item>
  </channel>
</rss>

