Subject: Re: kill(1) a pid after timeout
To: None <firstname.lastname@example.org>
From: Jarle Greipsland <email@example.com>
Date: 07/24/2007 22:00:06
Jan Schaumann <firstname.lastname@example.org> writes:
> 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).
Potentially this would be even more useful as an extension to the
existing pgrep(1)/pkill(1) utilities?