Subject: Re: pkill(1) a pid after timeout
To: None <>
From: Jan Schaumann <>
List: tech-userlevel
Date: 07/27/2007 08:29:06
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Andrew Doran <> wrote:
> On Thu, Jul 26, 2007 at 09:03:20PM -0700, Jan Schaumann wrote:
> > +.It Fl r Ar runtime
> > +Restrict matches to processes with a running time (ie wall clock) larg=
er than
> > +.Ar runtime .
> Wall clock time is just that - time by the clock on the wall. Do you want=
> match based on accumulated CPU time or time since the process started?

In this instance, I happen to need time since the process started.

> My preference is not to see pkill continue to grow more and more options
> since it can be done with scripts easily enough, but a few more useful on=
> seems fine. I checked Solaris, Linux and the other BSDs, and none of them
> use -r.

Well, you're the author of the program, so I think it's fair you get to
decide.  The patch I sent does what I needed; if others find it useful,
add it, else leave it out.  No hard feelings one way or the other.  :-)


You can blame it all on the Internet.
	Larry Wall

Content-Type: application/pgp-signature
Content-Disposition: inline

Version: GnuPG v1.4.7 (NetBSD)