From: Mike Kazantsev <mk.fraggod@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] high priority task as user (nice/ionice)
Date: Sun, 23 Aug 2009 21:05:09 +0600 [thread overview]
Message-ID: <20090823210509.64044502@coercion> (raw)
In-Reply-To: <20090823141914.GC22442@solfire>
[-- Attachment #1: Type: text/plain, Size: 573 bytes --]
On Sun, 23 Aug 2009 16:19:14 +0200
meino.cramer@gmx.de wrote:
> 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.
> But thank you for your help anyway.
Ah, sorry, must've missed that part.
How about this:
#!/bin/sh
exec nice -n -10 ionice -c 1 sudo -u user capture-command
(with the same initial sudo-invocation)
--
Mike Kazantsev // fraggod.net
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
next prev parent reply other threads:[~2009-08-23 15:05 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-08-23 8:20 [gentoo-user] high priority task as user (nice/ionice) meino.cramer
2009-08-23 14:05 ` Mike Kazantsev
2009-08-23 14:19 ` meino.cramer
2009-08-23 14:29 ` Stroller
2009-08-23 15:05 ` Mike Kazantsev [this message]
2009-08-23 15:19 ` meino.cramer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20090823210509.64044502@coercion \
--to=mk.fraggod@gmail.com \
--cc=gentoo-user@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox