Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

How do I access the global processID ?

I'd like to access the talend processID inside my job so i can tie it back to the stats generated.
How can i access this?
Labels (2)
2 Replies
alevy
Specialist
Specialist

Anonymous
Not applicable
Author

hi,
i've found this code :
byte[] bo = new byte;
String[] cmd = {"bash", "-c", "echo $PPID"};
Process p = Runtime.getRuntime().exec(cmd);
p.getInputStream().read(bo);
System.out.println(new String(bo));

from Igor Minar's Blog
that seems to work in a tjava component .
Console out
Démarrage du job pid a 09:52 17/05/2010.
connecting to socket on port 3359
connected
6461

In tLog.. componenet you also have pid, root pid, father pid in the ouput flow.
hope it help
regard
laurent