Basically I need to be able scan the process tree and find processes that match a certain name and started running more than a week a go. Once I have them, I need to kill them. All the processes are still seen as in a running state by the system, just not using any system time. They'll usually sit forever in this state too.
Ideally I'd like something similar to find, but for processes.
System is Debian linux and this will be scripted and run by cron so I've no real issues with something large but understandable.