Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 13 Dec 1997 20:51:22 -0600 (CST)
From:      "Matthew D. Fuller" <fullermd@futuresouth.com>
To:        questions@freebsd.org
Subject:   nice question
Message-ID:  <Pine.BSF.3.96.971213204729.14842B-100000@shell.futuresouth.com>

next in thread | raw e-mail | index | archive | help
this may be a bug in nice, a bug in the manpage, or a bug in my
understanding here.
her's my understanding: nice sets a priority between -20 and 20 (I'm
assuming running as root).  20 is the lowest priority, 0 is the highest
normal priority.

According to the man page, to nice something to a positive number you do
this:
nice -<number> command.
to nice to a negative number, you do this:
nice --<number> command

Here's what I get:
{~} root@mortis: %nice -20 top
and I find this in the output:
21551 root     51 -20   640K   856K RUN      0:00  4.80%  0.46% top
                 ^^^^
Note that this is at -20, not +20.
Then, if I do this:
{~} root@mortis: %nice --20 top
nice: Badly formed number.


So, I guess the question is, how do I nice something to +20?
I can't nice below -20, so it's not like it's shifted to -40 - 0.

HELP!!

*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
|       FreeBSD; the way computers were meant to be       |
* "The only reason I'm burning my candle at both ends, is *
| that I haven't figured out how to light the middle yet."|
*    fullermd@futuresouth.com      :-}  MAtthew Fuller    *
|      http://keystone.westminster.edu/~fullermd          |
*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*






Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.96.971213204729.14842B-100000>