From 6d2caa45ee375a19798742adc4e78045297b40da Mon Sep 17 00:00:00 2001 From: wosch Date: Sat, 2 Nov 1996 22:02:32 +0000 Subject: Match the reality. The man page was completely wrong. --- usr.bin/nice/nice.1 | 43 ++++++++++++++++++++++++++++++++----------- 1 file changed, 32 insertions(+), 11 deletions(-) (limited to 'usr.bin/nice') diff --git a/usr.bin/nice/nice.1 b/usr.bin/nice/nice.1 index 67b8471..629baf2 100644 --- a/usr.bin/nice/nice.1 +++ b/usr.bin/nice/nice.1 @@ -1,7 +1,6 @@ .\" Copyright (c) 1980, 1990, 1993 .\" The Regents of the University of California. All rights reserved. .\" -.\" .\" Redistribution and use in source and binary forms, with or without .\" modification, are permitted provided that the following conditions .\" are met: @@ -31,6 +30,7 @@ .\" SUCH DAMAGE. .\" .\" @(#)nice.1 8.1 (Berkeley) 6/6/93 +.\" $Id$ .\" .Dd June 6, 1993 .Dt NICE 1 @@ -51,25 +51,46 @@ at a low priority. (Think of low and slow). If .Fl Ns Ar number -is specified, and if it is greater than or equal -to 10 (the default), -.Nm nice +is not given +.Nm +assumed the value 10. +The priority is a value in the range -20 to 20. The default priority +is 0, priority 20 is the lowest possible. +.Nm Nice will execute .Ar command -at that priority. -The upper bound, or lowest priority that -.Nm nice -will run a command is 20. -The lower bounds or -higher priorities (integers less than 10) -can only be requested by the super-user. +at priority +.Ar number +relative to the priority +of +.Nm nice . +Higher priorities than the +current process priority can only requested by the +super-user. Negative numbers are expressed as .Fl - Ns Ar number . .Pp The returned exit status is the exit value from the command executed by .Nm nice . +.Sh EXAMPLES +.Pp +$ nice -5 date +.Pp +Execute command +.Sq date +at priority 5 assuming the priority of the +shell is 0. +.Pp +# nice -16 nice --35 date +.Pp +Execute command +.Sq date +at priority -19 assuming the priority of the +shell is 0 and you are the super-user. .Sh SEE ALSO +.Xr getpriority 2 , +.Xr setpriority 2 , .Xr csh 1 , .Xr renice 8 .Sh HISTORY -- cgit v1.1