From owner-freebsd-questions@FreeBSD.ORG Tue Jul 1 18:25:05 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 2EC3D37B401 for ; Tue, 1 Jul 2003 18:25:05 -0700 (PDT) Received: from mailout.informatik.tu-muenchen.de (mailout.informatik.tu-muenchen.de [131.159.0.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id 73EB144031 for ; Tue, 1 Jul 2003 18:25:04 -0700 (PDT) (envelope-from barner@in.tum.de) Received: by zi025.glhnet.mhn.de (Postfix, from userid 1000) id DFE773836D; Wed, 2 Jul 2003 03:25:02 +0200 (CEST) Date: Wed, 2 Jul 2003 03:25:02 +0200 From: Simon Barner To: Octavian Hornoiu Message-ID: <20030702012502.GE659@zi025.glhnet.mhn.de> References: <1057108442.29026.1.camel@phobos.lexis.int> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="8X7/QrJGcKSMr1RN" Content-Disposition: inline In-Reply-To: <1057108442.29026.1.camel@phobos.lexis.int> User-Agent: Mutt/1.5.4i X-Virus-Scanned: by amavisd-new at informatik.tu-muenchen.de 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 01:25:05 -0000 --8X7/QrJGcKSMr1RN Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hi, > is there a way to have the system automatically use nice on all > command-line apps during a session? i don't want to keep typing it over > and over every time i run a batch script or compilation. 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: $ nice -20 > compile compile compile, ... :-) HTH, Simon --8X7/QrJGcKSMr1RN Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (FreeBSD) iD8DBQE/AjRuCkn+/eutqCoRAvd1AJ4pMRH5k9DK908iRhyBvb2MUTJU8gCeO374 n8TW3054Q8NCCPNJOycWOOI= =CyIp -----END PGP SIGNATURE----- --8X7/QrJGcKSMr1RN--