From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1MfE4d-0001Az-IF for garchives@archives.gentoo.org; Sun, 23 Aug 2009 14:29:35 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id ABDA5E0373; Sun, 23 Aug 2009 14:29:33 +0000 (UTC) Received: from smtpout.karoo.kcom.com (smtpout.karoo.kcom.com [212.50.160.34]) by pigeon.gentoo.org (Postfix) with ESMTP id 6F76DE0373 for ; Sun, 23 Aug 2009 14:29:33 +0000 (UTC) X-IronPort-AV: E=Sophos;i="4.44,259,1249254000"; d="scan'208";a="126788481" Received: from unknown (HELO compaq.stroller.uk.eu.org) ([213.152.39.90]) by smtpout.karoo.kcom.com with ESMTP; 23 Aug 2009 15:29:32 +0100 Received: from [192.168.1.71] (unknown [192.168.1.71]) by compaq.stroller.uk.eu.org (Postfix) with ESMTP id 82FD7137D44 for ; Sun, 23 Aug 2009 15:29:29 +0100 (BST) Message-Id: <65876E81-440E-44BD-8B95-F30745B513C4@stellar.eclipse.co.uk> From: Stroller To: gentoo-user@lists.gentoo.org In-Reply-To: <20090823141914.GC22442@solfire> Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org Mime-Version: 1.0 (Apple Message framework v936) Subject: Re: [gentoo-user] high priority task as user (nice/ionice) Date: Sun, 23 Aug 2009 15:29:29 +0100 References: <20090823082008.GB5799@solfire> <20090823200542.1d4aea32@coercion> <20090823141914.GC22442@solfire> X-Mailer: Apple Mail (2.936) X-Archives-Salt: f0d5fd9b-c53b-41ac-80bf-e2c5f4768e16 X-Archives-Hash: cd46b0f40c76db0111f8c37da165db70 On 23 Aug 2009, at 15:19, meino.cramer@gmx.de wrote: >> ... >> #!/bin/sh >> exec nice -n -10 ionice -c 1 capture-command > ... > This will give the whole 'capture-comand# the rights of root, which > I want to prevent (see my posting). Instead I want to give it only > higher priorities for I/O-usage and CPU-usage. It should still act > with user rights for all other puposes. Use renice / snice. No idea if ionice has an equivalent. http://www.google.com/search?q=nice+existing+process http://www.forwardyouth.com/ubuntu/set-the-nice-level-of-an-existing-process/ http://www.nixtutor.com/linux/changing-priority-on-linux-processes/ Stroller.