Automatically killing a process if it doesn't use any CPU time

view full story

http://www.unix.com – Hi, I'm new to Linux. I have a windows server that run many processes on it. In some cases the processes doesn't exit properly or just stop working and the process needs to be killed. I was wondering how i can automatically (couple of times a day) check which process doesn't use any CPU time and then to kill it. Any help would be appreciated! (HowTos)