Mike Kazantsev <[email protected]> [09-08-23 17:08]:
> #!/bin/sh
> exec nice -n -10 ionice -c 1 sudo -u user capture-command
>
> (with the same initial sudo-invocation)
>
> --
> Mike Kazantsev // fraggod.net
...starts the capture command with user-rights, nice and ionice
fail cause starte with user rights,
Found the soultion myself in the meanwhile:
--------------------------------------------------------
#! /bin/sh
guvcview &
pID=$!
sudo ionice -c 1 -p ${pID}
sudo renice -10 -p ${pID}
--------------------------------------------------------
...starts guvcview with user rights and renice/ionice it
to higher levels with short running root priviledged
commands...
mcc
--
Please don't send me any Word- or Powerpoint-Attachments
unless it's absolutely neccessary. - Send simply Text.
See http://www.gnu.org/philosophy/no-word-attachments.html
In a world without fences and walls nobody needs gates and windows.