summaryrefslogtreecommitdiff
path: root/usr.bin/nice
diff options
context:
space:
mode:
authorWolfram Schneider <wosch@FreeBSD.org>1996-11-02 22:02:32 +0000
committerWolfram Schneider <wosch@FreeBSD.org>1996-11-02 22:02:32 +0000
commit459142187a90aa5e107852cd34d1f03cddac0fd3 (patch)
tree99f4c6ee9143b9cd86f63d00fb68fb44c9e464f2 /usr.bin/nice
parent232c762e377f53665fb7f42f634a6ae483503527 (diff)
downloadsrc-test-459142187a90aa5e107852cd34d1f03cddac0fd3.tar.gz
src-test-459142187a90aa5e107852cd34d1f03cddac0fd3.zip
Match the reality. The man page was completely wrong.
Notes
Notes: svn path=/head/; revision=19339
Diffstat (limited to 'usr.bin/nice')
-rw-r--r--usr.bin/nice/nice.143
1 files changed, 32 insertions, 11 deletions
diff --git a/usr.bin/nice/nice.1 b/usr.bin/nice/nice.1
index 67b8471005196..629baf2bb901c 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