From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,b150d071940692d,start X-Google-Attributes: gidfee84,public From: John Allen - GeoNet Subject: How to Kill Bogus Processes? Date: 1996/09/16 Message-ID: <51k226$74e@thor.atcon.com>#1/1 X-Deja-AN: 180959398 content-type: text/plain; charset=us-ascii organization: Atlantic Connect mime-version: 1.0 newsgroups: comp.unix.osf.osf1 x-mailer: Mozilla 1.1N (Windows; I; 16bit) Hi: I have an AlphaStation 400 4/233 running Digital Unix 3.2. I periodically check the state of the processes by doing a ps aux, and invariably find processes which are no longer valid; that is, somebody abandoned them for some time. This happens, for instance, if a user gets 'hung' in an application, and ^z's out of it, but the process still is drawing on the machines resources. Is there a way to target these 'hung' processes, so that I can implement a script to patrol the system, killing these types of processes? Before I recently upgraded to 3.2(was at 3.0b), I often was able to identify these guys as 'T' in the 'state' field of a ps output; but now they seem to be 'I''s or 'S's, so how do I tell them apart from the legit processes. Thanking you in advance, John A. -- John L. Allen Email: johna@atcon.com Manager, Applications Development Tel : (902)877-3170 GeoNet Technologies Inc. Fax: : (902)887-2349 P.O. Box 3989 Central Bedeque, P.E.I., Canada C0B 1G0