This works for me (FreeBSD - it is not portable):
$process = 224; @a = `ps -p $process`; @b=split(/\s+/,$a[1]); print $b[4];
In reply to Re: Can I see how long a process has been running?
by fglock
in thread Can I see how long a process has been running?
by soffen
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |