Is there a way to launch a user process with higher priority?
I can get what I want using renice(1) as follows:
but I'm wondering if there's a better way.
nice
won't work as a normal user, and sudo nice
launches as root.I can get what I want using renice(1) as follows:
Code:
xterm -name foo &
sudo renice -n -10 `ps -o pid,args | grep foo | grep -v grep | awk '{ print $1 }'`
but I'm wondering if there's a better way.