Subject: Re: kill(1) a pid after timeout
To: None <firstname.lastname@example.org>
From: Jan Schaumann <email@example.com>
Date: 07/24/2007 15:36:30
Content-Type: text/plain; charset=us-ascii
Andrew Doran <firstname.lastname@example.org> wrote:
> > I occasionally have the need to kill a process iff it has been running
> > for longer than N seconds. Instead of parsing the output of ps(1) and
> > then calling kill(1) myself, I have attached a patch to add the "-t
> > timeout" flag to kill(1).
> > Does that seem useful to others as well?
> When would this do something different than ulimit & SIGXCPU?
$ ulimit -t 500
$ invoke_long_command &
I want to be able to kill processes that have not been started with a
As we all know, reality is a mess.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (NetBSD)
-----END PGP SIGNATURE-----