[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Process filter, accumulated and STime
From: |
Thomas Glanzmann |
Subject: |
Re: Process filter, accumulated and STime |
Date: |
Wed, 5 Mar 2003 10:18:58 +0100 |
User-agent: |
Mutt/1.4i |
> A new application is causing a problem because it fails to terminate
> properly - or rather, the users are not terminating it properly - and
> a process gets left behind. I would like to identify the ones that
> were started more than x hours ago and kill them. Can it be done?
I wrote a little perl script, which works for Solaris and Linux, that
kills all processes that are running longer than one day and not
attached to a TTY, eat to much memmory or CPU, ...
If you're interested send me an eMail. But you need a recent verison of
perl and to perlmodules installed.
Thomas