<?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] tSCPFileList global variable to print out list of directories to flow? in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/resolved-tSCPFileList-global-variable-to-print-out-list-of/m-p/2299995#M72274</link>
    <description>I found a solution.&lt;BR /&gt;tSSH -----tNormalize----tLogRow&lt;BR /&gt;I used the same settings and commands in tSSH component. &amp;nbsp;On TSSH, I used standard output to&amp;nbsp;normal and then on tNormalize I normalized the 1 output row into several rows for consumption (item separator "\n").</description>
    <pubDate>Tue, 29 Mar 2016 20:51:35 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-03-29T20:51:35Z</dc:date>
    <item>
      <title>[resolved] tSCPFileList global variable to print out list of directories to flow?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-tSCPFileList-global-variable-to-print-out-list-of/m-p/2299994#M72273</link>
      <description>Hello,
&lt;BR /&gt;
&lt;BR /&gt;I am trying to obtain a list of directories via SCP. &amp;nbsp;Here is my current setup:
&lt;BR /&gt;
&lt;BR /&gt;
&lt;PRE&gt;tSCPConnection&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;|&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;|&lt;BR /&gt;(On SubJob OK)&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;|&lt;BR /&gt;tSCPFileList &amp;nbsp;---- (Iterate) ---- &amp;nbsp;tJava&lt;BR /&gt;&lt;/PRE&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;On tSCPFileList I have: command separator = ;&amp;nbsp;
&lt;BR /&gt;and under File List I have these two:
&lt;BR /&gt;
&lt;BR /&gt;
&lt;PRE&gt;"cd /var/www/bi.ourcompany.com/public/webalizer/"&lt;BR /&gt;"ls -1"&lt;BR /&gt;&lt;/PRE&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;on tJava I have (I know some of these won't work but I thought I'd try anyway.)
&lt;BR /&gt;
&lt;PRE&gt;&lt;BR /&gt;System.out.println("CURRENT_LINE: " + ((String)globalMap.get("tSCPFileList_1.CURRENT_LINE")) );&lt;BR /&gt;System.out.println("ERROR_MESSAGE: " + ((String)globalMap.get("tSCPFileList_1.ERROR_MESSAGE")) );&lt;BR /&gt;System.out.println("NB_LINE: " + ((String)globalMap.get("tSCPFileList_1.NB_LINE")) );&lt;BR /&gt;System.out.println("STATUS: " + ((String)globalMap.get("tSCPFileList_1.STATUS")) );&lt;BR /&gt;System.out.println("test below");&lt;BR /&gt;System.out.println("FILE: " + ((String)globalMap.get("tSCPFileList_1.CURRENT_FILE")) );&lt;BR /&gt;System.out.println("DIRECORY: " + ((String)globalMap.get("tSCPFileList_1.CURRENT_FILEDIRECTORY")) );&lt;BR /&gt;System.out.println("PATH: " + ((String)globalMap.get("tSCPFileList_1.CURRENT_FILEPATH")) );&lt;BR /&gt;&lt;/PRE&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;My expected result should show me a list of all directories in the folder, such as:
&lt;BR /&gt;
&lt;BR /&gt;
&lt;PRE&gt;&amp;nbsp;website1.com/&lt;BR /&gt;&amp;nbsp;website2.com/&lt;BR /&gt;&amp;nbsp;website3.com/&lt;BR /&gt;&amp;nbsp;website4.com/&lt;BR /&gt;&lt;/PRE&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;l can see that talend is reading the correct number of rows (directories) inside the folder however the result is all null for variable attempts for all given rows (example):
&lt;BR /&gt;
&lt;BR /&gt;
&lt;PRE&gt;CURRENT_LINE: null&lt;BR /&gt;ERROR_MESSAGE: null&lt;BR /&gt;NB_LINE: null&lt;BR /&gt;STATUS: null&lt;BR /&gt;test below&lt;BR /&gt;FILE: null&lt;BR /&gt;DIRECORY: null&lt;BR /&gt;PATH: null&lt;BR /&gt;CURRENT_LINE: null&lt;BR /&gt;ERROR_MESSAGE: null&lt;BR /&gt;NB_LINE: null&lt;BR /&gt;STATUS: null&lt;BR /&gt;test below&lt;BR /&gt;FILE: null&lt;BR /&gt;DIRECORY: null&lt;BR /&gt;PATH: null&lt;BR /&gt;etc...&lt;BR /&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 16 Nov 2024 10:43:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-tSCPFileList-global-variable-to-print-out-list-of/m-p/2299994#M72273</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T10:43:19Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] tSCPFileList global variable to print out list of directories to flow?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-tSCPFileList-global-variable-to-print-out-list-of/m-p/2299995#M72274</link>
      <description>I found a solution.&lt;BR /&gt;tSSH -----tNormalize----tLogRow&lt;BR /&gt;I used the same settings and commands in tSSH component. &amp;nbsp;On TSSH, I used standard output to&amp;nbsp;normal and then on tNormalize I normalized the 1 output row into several rows for consumption (item separator "\n").</description>
      <pubDate>Tue, 29 Mar 2016 20:51:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-tSCPFileList-global-variable-to-print-out-list-of/m-p/2299995#M72274</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-03-29T20:51:35Z</dc:date>
    </item>
  </channel>
</rss>

