From owner-freebsd-questions Mon Jan 29 14:18:55 2001 Delivered-To: freebsd-questions@freebsd.org Received: from dsl-64-193-218-89.telocity.com (dsl-64-193-218-89.telocity.com [64.193.218.89]) by hub.freebsd.org (Postfix) with SMTP id B801437B698 for ; Mon, 29 Jan 2001 14:18:38 -0800 (PST) Received: (qmail 2403 invoked by uid 1000); 29 Jan 2001 22:16:25 -0000 Date: Mon, 29 Jan 2001 16:16:25 -0600 From: Lucas Bergman To: Ronald Klop Cc: freebsd-questions@freebsd.org Subject: Re: permanent nice? Message-ID: <20010129161625.D17961@billygoat.slb.to> Reply-To: lucas@slb.to References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from ronald@klop.yi.org on Mon, Jan 29, 2001 at 02:33:24PM +0100 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > Is it possible to give an application a permanent nice level? I want > to start my mp3-player with a higher priority without having to > su-ing to root and renicing every time. > > I know I can write some kind wrapper which setuid's to root, renices > and setuid's back, but why invent the wheel if it (maybe) already > exists. I think you just answered your own question. In Unix, if a given bit of functionality already exists, nobody's going to a write a separate tool that duplicates it. (Well, some people that come from Losedows start out doing this, but they learn soon enough.) Use sudo(8) and nice(1) or whatever. As always, be careful about setuid scripts (or the basically equivalent functionality in sudo). Lucas To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message