LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (http://www.linuxquestions.org/questions/linux-general-1/)
-   -   changing priority class from the command line (http://www.linuxquestions.org/questions/linux-general-1/changing-priority-class-from-the-command-line-220710/)

stellarmarine1 08-21-2004 06:54 PM

changing priority class from the command line
 
Can someone please tell me how to change a processes priority class from the command line. I am running Fedora Core 2 with twinview enabled on an Nvidia FX vid card. When watching DVD's on my TV and surfing the net on the other screen I get a slight skip every so often.

Thanks for the help... :)

gunter 08-21-2004 07:37 PM

nice [OPTION] [COMMAND [ARG]...]

For Details:

man nice

stellarmarine1 08-21-2004 08:20 PM

thanks a lot for the quick response... I have a few more quesitons though...

I'm trying to change the Priority class for gmplayer. When I grep for it using [ps -ef | grep gmplayer] I get 7638 as my PID. How would I enter that so to speak, in nice in order to change the Priority to say... -10?

stellarmarine1 08-21-2004 08:22 PM

ok, this is where I got... I set it up like this and got.....

nice -n -10 7638
nice: cannot set priority: Permission denied

comp12345 08-21-2004 08:26 PM

You probably have to be root to lower the nice value of a process.

stellarmarine1 08-21-2004 08:32 PM

Quote:

Originally posted by comp12345
You probably have to be root to lower the nice value of a process.
good point, I totally overlooked that, let me su on over and let you all know the outcome... :)


All times are GMT -5. The time now is 05:30 AM.