How to set a permanent process priority?

Nils Kassube kassube at
Thu Sep 13 06:41:19 UTC 2007

D. Michael McIntyre wrote:
> For example, /usr/bin/audacity becomes
> #!/bin/bash
> /usr/bin/audacity
> renice -5 $(pidof audacity)
> Or something like that.

That something would be more like this (but it has only limited value, see 

/usr/bin/audacity &
pid=`jobs -p 1`
sudo renice -5 $pid

But there are (at least) 3 problems here:

First, you can renice your own processes to get a lower priority (higher 
nice value), but only root may rise the priority to negative nice values. 
That's why we need sudo here.

Second, only users in the admin group can use this trick to improve the 

Third, you will only see the password prompt on the terminal if audacity 
doesn't hide the terminal. And you have to start the script from a 
terminal to get the password prompt at all.


More information about the kubuntu-users mailing list