LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 08-21-2004, 06:54 PM   #1
stellarmarine1
Member
 
Registered: Jul 2004
Distribution: RedHat AS 2.1
Posts: 51

Rep: Reputation: 15
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...
 
Old 08-21-2004, 07:37 PM   #2
gunter
Member
 
Registered: Jan 2003
Distribution: Gentoo
Posts: 65

Rep: Reputation: 15
nice [OPTION] [COMMAND [ARG]...]

For Details:

man nice
 
Old 08-21-2004, 08:20 PM   #3
stellarmarine1
Member
 
Registered: Jul 2004
Distribution: RedHat AS 2.1
Posts: 51

Original Poster
Rep: Reputation: 15
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?
 
Old 08-21-2004, 08:22 PM   #4
stellarmarine1
Member
 
Registered: Jul 2004
Distribution: RedHat AS 2.1
Posts: 51

Original Poster
Rep: Reputation: 15
ok, this is where I got... I set it up like this and got.....

nice -n -10 7638
nice: cannot set priority: Permission denied
 
Old 08-21-2004, 08:26 PM   #5
comp12345
Member
 
Registered: Feb 2004
Posts: 467

Rep: Reputation: 30
You probably have to be root to lower the nice value of a process.
 
Old 08-21-2004, 08:32 PM   #6
stellarmarine1
Member
 
Registered: Jul 2004
Distribution: RedHat AS 2.1
Posts: 51

Original Poster
Rep: Reputation: 15
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...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
changing video driver via command line armus513 Mandriva 4 02-04-2005 11:03 AM
Changing Wallpaper from Command Line b_suny Linux - General 2 06-27-2004 05:52 AM
Changing video resolution from command line? lhouk Linux - General 4 04-15-2004 02:16 PM
Changing the Time Zone from the Command Line unclebyron Linux - Newbie 1 02-06-2004 11:30 AM
changing to root user without command line kaega2 Linux - Software 3 11-28-2003 03:14 PM


All times are GMT -5. The time now is 07:21 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration