public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
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 20:05:42 +0600	[thread overview]
Message-ID: <20090823200542.1d4aea32@coercion> (raw)
In-Reply-To: <20090823082008.GB5799@solfire>

[-- Attachment #1: Type: text/plain, Size: 758 bytes --]

On Sun, 23 Aug 2009 10:20:08 +0200
meino.cramer@gmx.de wrote:

> Is there any chance to start guvcview with user rights AND to give the
> application higer priorities so that whatever guvcview wants from the
> system will be served as soon as possible to avoid stuttering videos?

You can create a simple script, say, /usr/local/bin/capture and give
permissions to lauch it as root via sudo.

Script might be one-liner like

  #!/bin/sh
  exec nice -n -10 ionice -c 1 capture-command

and sudo line might look like this:

  user ALL=(root) NOPASSWD: /usr/local/bin/capture

NOPASSWD here means that you just have to type
'sudo /usr/local/bin/capture' to run the script as root, no questions
asked.

-- 
Mike Kazantsev // fraggod.net

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

  reply	other threads:[~2009-08-23 14:06 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 [this message]
2009-08-23 14:19   ` meino.cramer
2009-08-23 14:29     ` Stroller
2009-08-23 15:05     ` Mike Kazantsev
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=20090823200542.1d4aea32@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