A program to kill long-running runaway programs A program to kill long-running runaway programs unix unix

A program to kill long-running runaway programs


Try using system-level quota enforcement instead. Most systems will allow to set per-process CPU time limit for different users.

Examples:

  1. Linux: /etc/security/limits.conf
  2. FreeBSD: /etc/login.conf

CGI scripts can usually be run under their own user ID, for example using mod_suid for Apache.


This might be something more like what you were looking for:

http://devel.ringlet.net/sysutils/timelimit/


Most of the watchdig-like programs or libraries are just trying to see whether a given process is running, so I'd say you'd better off writing your own, using the existing libraries that give out process information.