From owner-freebsd-multimedia Sun Sep 16 16:12:20 2001 Delivered-To: freebsd-multimedia@freebsd.org Received: from mail.netrus.net (mail.netrus.net [206.251.192.232]) by hub.freebsd.org (Postfix) with ESMTP id D6BA937B415 for ; Sun, 16 Sep 2001 16:12:17 -0700 (PDT) Received: from eyrie.homenet (whee@dialin-pm3-miami-FL-2-162.netrus.net [206.251.198.162]) by mail.netrus.net (8.8.8/8.8.8) with ESMTP id SAA12605 for ; Sun, 16 Sep 2001 18:12:37 -0400 Received: (from troc@localhost) by eyrie.homenet (8.11.4/8.11.4) id f8GNCFV05323 for freebsd-multimedia@freebsd.org; Sun, 16 Sep 2001 19:12:15 -0400 (EDT) (envelope-from troc) Date: Sun, 16 Sep 2001 19:12:14 -0400 From: Rocco Caputo To: freebsd-multimedia@freebsd.org Subject: Re: Setting priority Message-ID: <20010916191214.C1012@eyrie.homenet> References: <20010916135907.HEVY9437.fepZ.post.tele.dk@there> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010916135907.HEVY9437.fepZ.post.tele.dk@there>; from mekanix@privat.dk on Sun, Sep 16, 2001 at 04:01:19PM +0200 Sender: owner-freebsd-multimedia@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Sun, Sep 16, 2001 at 04:01:19PM +0200, Bjarne Wichmann Petersen wrote: > Is there some way to get the various mediaplayers running at a higher > priority without having to login as superuser and renicing the process? > > Bjarne I use sudo to invoke (as root) a script like this: #!/bin/sh exec /usr/sbin/rtprio 16 /usr/bin/su troc -c /usr/X11R6/bin/xmms ... which runs xmms at realtime priority, but as me, not root. It assumes a specific login ID, which probably isn't a big deal. Make sure the script's permissions are locked tight. -- Rocco Caputo / troc@netrus.net / poe.perl.org / poe.sourceforge.net To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-multimedia" in the body of the message