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 1MfDiZ-0005Io-FM for garchives@archives.gentoo.org; Sun, 23 Aug 2009 14:06:47 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 506FFE027A; Sun, 23 Aug 2009 14:05:59 +0000 (UTC) Received: from mail-ew0-f218.google.com (mail-ew0-f218.google.com [209.85.219.218]) by pigeon.gentoo.org (Postfix) with ESMTP id 11E74E027A for ; Sun, 23 Aug 2009 14:05:58 +0000 (UTC) Received: by ewy18 with SMTP id 18so1961300ewy.14 for ; Sun, 23 Aug 2009 07:05:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:date:from:to:subject :message-id:in-reply-to:references:x-mailer:mime-version :content-type; bh=jC5Y6RU6+ljOGlqFlQCWwCC9W73m7Nvy+/uKzE3E4tw=; b=t+OSb869wklM85Kos9NNd+9pxavOS4h51H637Al5DKr970kxu7po0MZtSfJFCKhzL8 6KRXtVzDjlweWsfXaRcpm7i2NRUsEtIlhzpqt2pXQAEUfOs0BJYXg85bpdI35pd6l3vu WCT8i4sMEaLvvhYJgc+wk9tyJqA5FEYBrd2dQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:subject:message-id:in-reply-to:references:x-mailer :mime-version:content-type; b=xbm3JwWD5w03IOKUdSB7TrU0A97ASesjehJ/MHwKaS6ijIcbpaRBRbDg+f/MAD11cX 09mnVA4ALHW4yJTWSS7LiQ+DkMMlGP5fq5e+b3EmUKprFViIIlMy9i2ZhVGF0QLTvJSu Odyo8tWP3RI89VYtCobNI8qHfeRsmr4GnD/Eg= Received: by 10.210.16.11 with SMTP id 11mr3934890ebp.50.1251036358324; Sun, 23 Aug 2009 07:05:58 -0700 (PDT) Received: from coercion ([91.191.238.58]) by mx.google.com with ESMTPS id 24sm5594418eyx.23.2009.08.23.07.05.57 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 23 Aug 2009 07:05:57 -0700 (PDT) Date: Sun, 23 Aug 2009 20:05:42 +0600 From: Mike Kazantsev To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] high priority task as user (nice/ionice) Message-ID: <20090823200542.1d4aea32@coercion> In-Reply-To: <20090823082008.GB5799@solfire> References: <20090823082008.GB5799@solfire> X-Mailer: Claws Mail 3.7.2 (GTK+ 2.16.5; i686-pc-linux-gnu) 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 Content-Type: multipart/signed; micalg=PGP-SHA1; boundary="Sig_/rolER_qB6._bkpU+ntRelCa"; protocol="application/pgp-signature" X-Archives-Salt: f06cd1f2-a1ee-4761-b2a8-1f35384ffef7 X-Archives-Hash: 64fa7d89e373581e5db07068047a3a45 --Sig_/rolER_qB6._bkpU+ntRelCa Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable 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=3D(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. --=20 Mike Kazantsev // fraggod.net --Sig_/rolER_qB6._bkpU+ntRelCa Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.11 (GNU/Linux) iEYEARECAAYFAkqRTLoACgkQASbOZpzyXnGFkQCg3ys12TWZ3PtdpYl1/AAC6pK0 RoQAn0tuYmE3Wj5lCzaSorMBdruoJt6e =itin -----END PGP SIGNATURE----- --Sig_/rolER_qB6._bkpU+ntRelCa--