Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #263734

Get running time of child process

From Franco Martelli <martellif67@gmail.com>
Newsgroups linux.debian.user
Subject Get running time of child process
Date 2023-11-20 21:00 +0100
Message-ID <HCiB3-6NSG-3@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


Hi,
Get running time of child process
I've Picom running on my system with these PIDs:

~$ pstree -hpan | grep picom
   |   |   |   |   `-grep,6199 picom
   |-picom,1620 -b --config /home/myuser/.config/picom.conf
   |   `-{picom},3507

If I do:

~$ ps -eo pid,lstart,etime | grep 1620
    1620 Mon Nov 20 16:12:47 2023    01:22:39

1620 is the PID of the parent process, the command returns the date when 
the parent process had started and the elapsed time as I expected. But 
if I do the same command for the its child process (PID 3507):

~$ ps -eo pid,lstart,etime | grep 3507

the command returns nothing.
So, is it possible to have the starting time and the elapsed time of a 
child process?
Thanks in advance, kind regards
-- 
Franco Martelli

Back to linux.debian.user | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

Get running time of child process Franco Martelli <martellif67@gmail.com> - 2023-11-20 21:00 +0100
  Re: Get running time of child process Michael Kjörling <2695bd53d63c@ewoof.net> - 2023-11-20 21:30 +0100
    Re: Get running time of child process Franco Martelli <martellif67@gmail.com> - 2023-11-21 16:40 +0100
      Re: Get running time of child process Michael Kjörling <2695bd53d63c@ewoof.net> - 2023-11-21 17:50 +0100
        Re: Get running time of child process Franco Martelli <martellif67@gmail.com> - 2023-11-21 20:50 +0100
          Re: Get running time of child process <tomas@tuxteam.de> - 2023-11-22 06:40 +0100

csiph-web