<?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: Getting the PID (the same captured by tLogCatcher) in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Getting-the-PID-the-same-captured-by-tLogCatcher/m-p/2458844#M140734</link>
    <description>&lt;P&gt;Thank you.&lt;BR /&gt;I will do that.&lt;BR /&gt;&lt;BR /&gt;Thank you so much for the help.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Rui&lt;/P&gt;</description>
    <pubDate>Mon, 03 Jun 2024 17:09:17 GMT</pubDate>
    <dc:creator>RMotta2408</dc:creator>
    <dc:date>2024-06-03T17:09:17Z</dc:date>
    <item>
      <title>Getting the PID (the same captured by tLogCatcher)</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Getting-the-PID-the-same-captured-by-tLogCatcher/m-p/2457966#M140716</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm trying to get the PID value (the same it is shown in tLogCatcher) but I can't get the same one.&lt;BR /&gt;Let me explain: I'm using the following&amp;nbsp;instruction to get the Process name, which includes its PID:&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;java.lang.management.ManagementFactory.getRuntimeMXBean().getName()&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;This will get me "&lt;FONT size="2"&gt;&lt;EM&gt;&lt;STRONG&gt;11876@DESKTOP-LI4JPMJ&lt;/STRONG&gt;&lt;/EM&gt;&lt;/FONT&gt;"&lt;/P&gt;
&lt;P&gt;To get the PID I'm doing as follows:&lt;BR /&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;java.lang.management.ManagementFactory.getRuntimeMXBean().getName().substring(0, java.lang.management.ManagementFactory.getRuntimeMXBean().getName().indexOf("@"));&lt;/FONT&gt; &lt;/P&gt;
&lt;P&gt;This will get me "&lt;FONT size="2" color="#3366FF"&gt;&lt;EM&gt;&lt;STRONG&gt;11876&lt;/STRONG&gt;&lt;/EM&gt;&lt;/FONT&gt;"&lt;/P&gt;
&lt;P&gt;But, in the same Job, the component tLogCatcher displays the following information:&lt;BR /&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;+------------+-------------------------------+&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;| key&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; | value&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;|&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;+------------+-------------------------------+&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;| moment&amp;nbsp; &amp;nbsp; &amp;nbsp;| 2024-05-30 20:23:54&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;|&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;| pid&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; | &lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;yb9Lyl&lt;/FONT&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/STRONG&gt;|&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;| root_pid&amp;nbsp; &amp;nbsp;| yb9Lyl&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;| father_pid | yb9Lyl&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;| context&amp;nbsp; &amp;nbsp; | Default&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;|&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;| priority&amp;nbsp; &amp;nbsp;| 6&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;|&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;| type&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| Java Exception&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;| origin&amp;nbsp; &amp;nbsp; &amp;nbsp;| tFileOutputExcel_1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;| message&amp;nbsp; &amp;nbsp; | java.io.FileNotFoundException:|&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;| code&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| 1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;|&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;As you can see, these are not the same values.&lt;BR /&gt;Can anyone please let me know how to get the PID shown by the tLogCatcher component?&lt;BR /&gt;&lt;BR /&gt;Thank you so much,&lt;BR /&gt;Rui&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 May 2024 19:33:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Getting-the-PID-the-same-captured-by-tLogCatcher/m-p/2457966#M140716</guid>
      <dc:creator>RMotta2408</dc:creator>
      <dc:date>2024-05-30T19:33:33Z</dc:date>
    </item>
    <item>
      <title>Re: Getting the PID (the same captured by tLogCatcher)</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Getting-the-PID-the-same-captured-by-tLogCatcher/m-p/2458079#M140717</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Open the &lt;STRONG&gt;Code&lt;/STRONG&gt; tab to view the Java code generated by the Job. These lines of Java code generate a PID string with 6 length.&lt;/P&gt;
&lt;LI-CODE lang="java"&gt;	if (pid == null || "0".equals(pid)) {
			pid = TalendString.getAsciiRandomString(6);
		}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;
&lt;P&gt;Shicong&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 31 May 2024 07:22:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Getting-the-PID-the-same-captured-by-tLogCatcher/m-p/2458079#M140717</guid>
      <dc:creator>Shicong_Hong</dc:creator>
      <dc:date>2024-05-31T07:22:37Z</dc:date>
    </item>
    <item>
      <title>Re: Getting the PID (the same captured by tLogCatcher)</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Getting-the-PID-the-same-captured-by-tLogCatcher/m-p/2458361#M140721</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/257838"&gt;@Shicong_Hong&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for replying.&lt;BR /&gt;I may have not made myself clear. I need to get the PID value while running the Job.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;Thank you,&lt;/P&gt;
&lt;P&gt;Rui&lt;/P&gt;</description>
      <pubDate>Fri, 31 May 2024 17:17:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Getting-the-PID-the-same-captured-by-tLogCatcher/m-p/2458361#M140721</guid>
      <dc:creator>RMotta2408</dc:creator>
      <dc:date>2024-05-31T17:17:31Z</dc:date>
    </item>
    <item>
      <title>Re: Getting the PID (the same captured by tLogCatcher)</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Getting-the-PID-the-same-captured-by-tLogCatcher/m-p/2458581#M140724</link>
      <description>&lt;P&gt;You can use tStatCatcher component to capture the job statistics information which includes the PID value, but if you want to customize the code to generate PID, it cannot be the same as the PID generated by the job, the job use function&amp;nbsp;TalendString.getAsciiRandomString(6) to generates a random string with 6 length.&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jun 2024 02:40:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Getting-the-PID-the-same-captured-by-tLogCatcher/m-p/2458581#M140724</guid>
      <dc:creator>Shicong_Hong</dc:creator>
      <dc:date>2024-06-03T02:40:57Z</dc:date>
    </item>
    <item>
      <title>Re: Getting the PID (the same captured by tLogCatcher)</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Getting-the-PID-the-same-captured-by-tLogCatcher/m-p/2458613#M140725</link>
      <description>&lt;P&gt;Good morning&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/257838"&gt;@Shicong_Hong&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;My wish is not to generate a PID code. But, instead, capture it to insert on a DB along with the records received by an API.&lt;BR /&gt;That's the challenge. To call an API, receive the results and insert them in a table along with the PID.&lt;BR /&gt;&lt;BR /&gt;Thank you,&lt;BR /&gt;Rui&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jun 2024 06:20:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Getting-the-PID-the-same-captured-by-tLogCatcher/m-p/2458613#M140725</guid>
      <dc:creator>RMotta2408</dc:creator>
      <dc:date>2024-06-03T06:20:57Z</dc:date>
    </item>
    <item>
      <title>Re: Getting the PID (the same captured by tLogCatcher)</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Getting-the-PID-the-same-captured-by-tLogCatcher/m-p/2458659#M140726</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;If you want to retrieve the PID of a job inside a job, it is luckily very easy.&lt;/P&gt;
&lt;P&gt;You just use pid as the value in any component.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pid.png" style="width: 780px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/167274iAE79047573725A26/image-size/large?v=v2&amp;amp;px=999" role="button" title="pid.png" alt="pid.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;And voila:&lt;BR /&gt;.------.&lt;BR /&gt;|tLogRow_1|&lt;BR /&gt;|=----=|&lt;BR /&gt;|pid |&lt;BR /&gt;|=----=|&lt;BR /&gt;|gq3o5u|&lt;BR /&gt;'------'&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jun 2024 08:18:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Getting-the-PID-the-same-captured-by-tLogCatcher/m-p/2458659#M140726</guid>
      <dc:creator>janterje</dc:creator>
      <dc:date>2024-06-03T08:18:19Z</dc:date>
    </item>
    <item>
      <title>Re: Getting the PID (the same captured by tLogCatcher)</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Getting-the-PID-the-same-captured-by-tLogCatcher/m-p/2458664#M140727</link>
      <description>&lt;P&gt;Link the result of API to a tMap and add extra job information in the output table, such as pid, jobName, projectName etc as you want. As Janterje said, to get the value of these job information, you can directly use the variable name in the expression field.&lt;/P&gt;
&lt;P&gt;pid for PID&lt;/P&gt;
&lt;P&gt;jobName for Job Name&lt;/P&gt;
&lt;P&gt;projectName for Project Name&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jun 2024 08:36:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Getting-the-PID-the-same-captured-by-tLogCatcher/m-p/2458664#M140727</guid>
      <dc:creator>Shicong_Hong</dc:creator>
      <dc:date>2024-06-03T08:36:31Z</dc:date>
    </item>
    <item>
      <title>Re: Getting the PID (the same captured by tLogCatcher)</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Getting-the-PID-the-same-captured-by-tLogCatcher/m-p/2458843#M140733</link>
      <description>&lt;P&gt;Really?!??!?!&lt;BR /&gt;&lt;BR /&gt;Wow, thankyou so much. I really appreciate your help.&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;/P&gt;
&lt;P&gt;Rui&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jun 2024 17:08:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Getting-the-PID-the-same-captured-by-tLogCatcher/m-p/2458843#M140733</guid>
      <dc:creator>RMotta2408</dc:creator>
      <dc:date>2024-06-03T17:08:44Z</dc:date>
    </item>
    <item>
      <title>Re: Getting the PID (the same captured by tLogCatcher)</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Getting-the-PID-the-same-captured-by-tLogCatcher/m-p/2458844#M140734</link>
      <description>&lt;P&gt;Thank you.&lt;BR /&gt;I will do that.&lt;BR /&gt;&lt;BR /&gt;Thank you so much for the help.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Rui&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jun 2024 17:09:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Getting-the-PID-the-same-captured-by-tLogCatcher/m-p/2458844#M140734</guid>
      <dc:creator>RMotta2408</dc:creator>
      <dc:date>2024-06-03T17:09:17Z</dc:date>
    </item>
  </channel>
</rss>

