From owner-freebsd-isp Fri May 31 01:19:12 1996 Return-Path: owner-isp Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id BAA27725 for isp-outgoing; Fri, 31 May 1996 01:19:12 -0700 (PDT) Received: from mailhub.aros.net (mailhub.aros.net [205.164.111.17]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id BAA27717 for ; Fri, 31 May 1996 01:19:08 -0700 (PDT) Received: from terra.aros.net (terra.aros.net [205.164.111.10]) by mailhub.aros.net (8.7.5/Unknown) with ESMTP id CAA18551; Fri, 31 May 1996 02:50:39 -0600 (MDT) Received: (from angio@localhost) by terra.aros.net (8.7.5/8.6.12) id CAA31977; Fri, 31 May 1996 02:19:05 -0600 From: Dave Andersen Message-Id: <199605310819.CAA31977@terra.aros.net> Subject: Re: detecting and killing CPU hogs To: map@iphil.net (Miguel A.L. Paraz) Date: Fri, 31 May 1996 02:19:05 -0600 (MDT) Cc: freebsd-isp@freebsd.org In-Reply-To: <199605310727.PAA05508@marikit.iphil.net> from "Miguel A.L. Paraz" at May 31, 96 03:27:16 pm X-Mailer: ELM [version 2.4 PL25 PGP2] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-isp@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Lo and behold, Miguel A.L. Paraz once said: > Is there a way to do kill programs like this via scripts: > > 15296 p0- RN 5359:54.88 lynx *ouch*. That's not healthy. :) > I think these are caused by people who run these from the shell via > a telnet session, which gets disconnected. Am I right? For the most part, completely correct. My suggestion is a quick perl script to do it that parses the output of a ps -auxw. If you want, I can send you the one I use here, but you'll probably want to customize it for your own system. The other option is to have the users shells execute a 'limit' when they log on. :-) I haven't tried that approach, as a decision was made to use bash as the default shell here. -Dave Andersen -- angio@aros.net Complete virtual hosting and business-oriented system administration Internet services. (WWW, FTP, email) http://www.aros.net/ http://www.aros.net/about/virtual "There are only two industries that refer to thier customers as 'users'."