Re: [process priority] Questions about re/nice
Mike McCarty wrote:
$ alias mplayer="nice -n -20 /usr/local/bin/mplayer"
Or a script.
As to whether this may cause prolems with starving other processes,
I don't know. Certainly, if possible, another solution is preferable.
I've already considered this solution, but it doesn't work, because of root
permissions needed: if I run this command as a normal user, here's the result:
$ nice -n -20 /usr/local/bin/mplayer
nice: cannot set priority: Permission denied
I want to always run the process with maximum priority as normal user.
Do you mean "logged in as a normal user" or do you mean "run as a
$ alias mplayer="sudo nice -n -20 /usr/local/bin/mplayer"
This allows you to log in as a normal user, and run with nice.
But the process does not run as a normal user process.
Also, you need to be one of the sudoers.
This message made from 100% recycled bits.
You have found the bank of Larn.
I can explain it for you, but I can't understand it for you.
I speak only for myself, and I am unanimous in that!