stat the processes' stat file perhaps? Using a find?

$ ps -o lstart 2730
                 STARTED
Mon Oct 31 16:03:54 2016

$ stat /proc/2730/stat
  File: '/proc/2730/stat'
  Size: 0         Blocks: 0          IO Block: 1024   regular empty file
Device: 4h/4d Inode: 15018747    Links: 1
Access: (0444/-r--r--r--)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 2016-10-31 16:03:56.476938217 +1100
Modify: 2016-10-31 16:03:56.476938217 +1100
Change: 2016-10-31 16:03:56.476938217 +1100
 Birth: -


On Thu, Nov 3, 2016 at 1:01 AM 積丹尼 Dan Jacobson <jida...@jidanni.org> wrote:

> By the way, I wanted to set up a cronjob that would find and warn me
> about any of my processes that were running more than a day. But now
> apparently there is no way...
>

Reply via email to