I need the command to kill processes that have been running since at least 5 minutes for a given process.
I will have to run that command every five minutes or so.
Thanks a million !
(system is Centos5)
I found the solution on this page: http://www.directadmin.com/forum/showthread.php?t=26179
Make a empty file and call it killlongproc.sh
Stop this in your cronjob
There is a script here that you could modify to do what you want.
EDIT added the script below