How to get the start time of a process
Patrick O'Callaghan
pocallaghan at gmail.com
Fri Mar 12 16:49:32 UTC 2010
On Fri, 2010-03-12 at 16:57 +0100, Dario Lesca wrote:
> Hi, how to get from a Shell the date that was start a process?
>
> Then command: "ps h -ostime $$"
> show a value not usable for me (14:13 or May22 or 2009)
>
> The command: "awk '{print $22}' /proc/$$/stat"
> show The time in jiffies the process started after system boot (es
> 1563950) and I do not known how to convert it in date/time.
>
> I want to find all processes older than n-days and send them a special
> signal
atop (yum install atop) shows the start date and time to 1-minute
resolution (type 'v' in interactive mode). You can also run it
non-interactively.
poc
More information about the users
mailing list