From owner-freebsd-questions@FreeBSD.ORG Tue Jul 1 20:45:57 2003 Return-Path: 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 4E98B37B401 for ; Tue, 1 Jul 2003 20:45:57 -0700 (PDT) Received: from web14205.mail.yahoo.com (web14205.mail.yahoo.com [216.136.172.151]) by mx1.FreeBSD.org (Postfix) with SMTP id E2BC743FBD for ; Tue, 1 Jul 2003 20:45:56 -0700 (PDT) (envelope-from temac@yahoo.com) Message-ID: <20030702034556.26288.qmail@web14205.mail.yahoo.com> Received: from [12.22.62.13] by web14205.mail.yahoo.com via HTTP; Tue, 01 Jul 2003 20:45:56 PDT Date: Tue, 1 Jul 2003 20:45:56 -0700 (PDT) From: Thomas McIntyre To: octavian@hacknslash.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii cc: freebsd-questions@freebsd.org Subject: Re: automatically using "nice" X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Jul 2003 03:45:57 -0000 Simon Barner wrote: > You could either modify your scripts to use nice, or start a new > shell with an appropriate nice level. All the processes you launch > from that shell will inherit the nice level of that shell: A user can also be niced by login classes: gccuser:*:1000:0:interactive:::gccuser:/home/gccusr:/bin/csh with /etc/login.conf (less /etc/login.conf, man login.conf, man 5 passwd, /handbook/users-limiting.html): interactive:\ :priority=20:\ :tc=default: To renice interactively, you can su - gccuser, do so manually, or spawn/exec the current login shell: exec bash --login with ~/.bash_login: renice 20 $$ export PS1="[\u@\h:\j:\w]\$ " But be sure not to nice background processes -- it might break the warrantee.... Regards, Tom McIntyre __________________________________ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com