On 21 Nov 2023 16:34 +0100, from martelli...@gmail.com (Franco Martelli): >> $ ps -eo pid,lstart,etime -q 1620,3507 > > Thanks it works, but instead of the child PID it is shown the parent PID: > > ~$ ps -eo pid,lstart,etime -q 1620,6841 > PID STARTED ELAPSED > 1620 Mon Nov 20 16:12:47 2023 23:47:16 > 1620 Tue Nov 21 15:59:36 2023 00:28
Maybe for that what you want is "tid" not "pid"? -- Michael Kjörling 🔗 https://michael.kjorling.se “Remember when, on the Internet, nobody cared that you were a dog?”