From owner-freebsd-questions@FreeBSD.ORG Tue Sep 26 18:23:41 2006 Return-Path: X-Original-To: questions@freebsd.org Delivered-To: freebsd-questions@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9011216A415 for ; Tue, 26 Sep 2006 18:23:41 +0000 (UTC) (envelope-from drosih@rpi.edu) Received: from smtp8.server.rpi.edu (smtp8.server.rpi.edu [128.113.2.228]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1872343D45 for ; Tue, 26 Sep 2006 18:23:40 +0000 (GMT) (envelope-from drosih@rpi.edu) Received: from [128.113.24.47] (gilead.netel.rpi.edu [128.113.24.47]) by smtp8.server.rpi.edu (8.13.1/8.13.1) with ESMTP id k8QINchh029442; Tue, 26 Sep 2006 14:23:39 -0400 Mime-Version: 1.0 Message-Id: In-Reply-To: <7.0.1.0.2.20060926090533.083a2a88@lariat.net> References: <7.0.1.0.2.20060926090533.083a2a88@lariat.net> Date: Tue, 26 Sep 2006 14:23:37 -0400 To: Brett Glass , questions@freebsd.org From: Garance A Drosihn Content-Type: text/plain; charset="us-ascii" ; format="flowed" X-CanItPRO-Stream: default X-RPI-SA-Score: undef - spam-scanning disabled X-Scanned-By: CanIt (www . canit . ca) Cc: Subject: Re: Best way to "renice" a process by name? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 Sep 2006 18:23:41 -0000 At 9:32 AM -0600 9/26/06, Brett Glass wrote: > >Is there a "renice by name" utility for FreeBSD (sort of an >equivalent of "killall")? I could gin one up, but since this seems >like something that people would want to do frequently, find it hard >to believe that someone hasn't already written one. FreeBSD added the `pgrep' command sometime ago. Your renice-by-name script would turn into something like: renice +2 `pgrep diskd` (I have not tested that, and you might want to embellish it by adding some of the other options to the `pgrep' command) -- Garance Alistair Drosehn = gad@gilead.netel.rpi.edu Senior Systems Programmer or gad@freebsd.org Rensselaer Polytechnic Institute or drosih@rpi.edu